Question 938102
Given: 1 drink = p
-------------------
1 medium pizza = 2p
1 large pizza = 3p

{{{30 - 1large - 1medium - 3 drinks}}}
Substitute the p values in
{{{30 - 3p - 2p - 3*p}}}
{{{30 - 3p - 2p - 3p}}}
Combine like terms
{{{30 - 8p}}}
Y = 30-8P
Where Y is the amount of money that is left over