A hot dog is $2 and a hamburger is $1.50.
Simple explanation:
Make a system of equations:
h=number of hot dogs, b=number of hamburgers
1h + 2b = $5
3h + 2b = $9
Solve
h=$2, b=$1.50
Long explanation:
The difference between them is tha Gage bought 2 more hot dogs than Josh, and Gage had to pay 4 more $. So, the price of one hot dog must be 4/2=$2.
Now we know that one hot dog costs $2.
To find the price of a hamburger, choose one person and calculate the price of the hot dogs he brought, and subtract that result from the price he paid. Then, divide that difference by the number of hamburgers he bought to get the price of a hamburger.
The price of Gage’s hot dogs is 3x2=$6. He paid $9, so that is $3 more than 6. He also bought 2 hamburgers, so the price of one hamburger is $3/$2=$1.50.
Price