let p represent pizza
let s represent subs
when he bought 4 pizza and 5 subs bill is $56.25
when he bought 3 pizzas and 7 subs his bill is $59.25
solving the two equations simultaneosly
divide both side by 13
substitute s= 5.25 in equation 1
4p + 5(5.25) = 56.25
4p + 26.25 = 56.25
4p = 56.25 - 26.25
4p = 30
divide both side by 4
each pizza cost $7.5
each sub cost $5.25