Let the cost of each packet of cheese is $x
Let the cost of each burger $y
Calvin bought 5 packets of cheese and 3 burgers for $29.99
Mathematically we can write
Alex bought 3 packets of cheese and 7 burgers for $32.71
Mathematically we can write
Now we have to solve equations (1) and (2) for x and y
Now 7*(1)-3*(2) implies
Hence the price of each packets of cheese is $4.30