Kayla notices that she can buy snacks and candy in bulk at the grocery store. The snacks she wants to buy weigh 1 kilogram. Write a formula that will help Kayla determine how much she'll have to pay if she buys food in bulk.

Let's let
t = total price
p = price per kilogram