A school cafeteria sells sandwiches for $4.50 each, cartons of milk for $1 and bananas for $0.50 each. One table of students spent $36.00 total. They bought 2 more milks than sandwiches and they bought two time more sandwiches than bananas. How many bananas did the students buy?

2 answers

m=s+2
s = 2b
4.50s + 1.00m + 0.50b = 36.00

m = 2b+2
now just substitute in for m and s to get
4.50(2b) + 1.00(2b+2) + 0.50b = 36.00
b = 68/23

Is there a typo somewhere in the problem or in my math?
4.5(2b)= 9b
1(2b+2)= 2b+2

9b+2b+2+.5b=36
9b+2b+0.50b=36-2
11.5b=34
b=34/11.5