we can write an equation from the statement
All together, Michael and his two friends have exactly $30 to spend on lunch. Hot dogs cost 3.50 and drinks cost $1.50
where h is the number of hot dogs and d the number of drinks
if they each get two hot dogs
then replace h=2x3=6
then to find the number of drinks we solve d
they can buy 6 drinks