Final answer:
Each student got 1 topping.
Step-by-step explanation:
To find out how many toppings each student got, we can set up two equations:
Let x be the number of toppings.
For the first student, the cost of the steak burger and toppings is $3.80 + $0.40x.
For the second student, the cost of the hamburger and toppings is $3 + $3x.
Since both students spent the same amount of money on their lunches, we can set these two expressions equal to each other:
$3.80 + $0.40x = $3 + $3x
Simplifying, we get $0.80x = $0.80
Dividing both sides by $0.80, we get x = 1
Therefore, each student got 1 topping.