Let x be the number of hamburger
Let y be the number of soda
If a total of 250 hamburgers and soda were sold, then,
This implies
x + y = 250 ----------------------------(1)
If each hamburger costs $2 and each soda costs$1 and the total cost is $368
Then, this implies;
2x + y = 368 -----------------------------(2)
Let's now solve the two equation simultaneously
Using the elimination method, we will eliminate y
Subtract equation(1) from equation(2)
x = 118
Therefore, the number of hamburger sold is 118