We know that
• The tip is $3 each time.
,
• Last month he ate there 6 times.
,
• He spent $78 in total.
,
• The soda costa $1.50.
Based on the given information, we can express the following

Let's solve the equation for h

Therefore, the cost of a hamburger is $8.50.