I commented on your question but I'll solve it as if the second scenario had 4 hot dogs and 3 hamburgers totaling $13.75
Let D represent hot dogs. Let H represent hamburgers.
@@MATH_TOKEN_0@@
This is called a system of equations. You must substitute one equation into the other. I'll work it through, and hopefully you can follow along.
@@MATH_TOKEN_1@@
Now you have the value of one hot dog (D). Substitute this value into the other equation. This way you will only be working with the H variable.
@@MATH_TOKEN_2@@
9/4=2.25 for the price of a Hamburger (H).
Now plug the value for H (2.25) into either equation.
@@MATH_TOKEN_3@@
The price for a Hamburger is $2.25
The price for a Hot Dog is $1.75