The basketball team earned 50 x $2 = $<<50*2=100>>100 from selling cupcakes.

They also earned 40 x 0.5 = $<<40*0.5=20>>20 from selling cookies.

So their total earnings was $100 + $20 = $<<100+20=120>>120.

The two basketballs cost $40 x 2 = $<<40*2=80>>80.

Thus, $120 - $80 = $<<120-80=40>>40 was used to buy the 20 bottles of energy drinks.

Therefore, each bottle of energy drink costs $40/20 = $<<40/20=2>>2.

# Answer

2
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
The basketball team sold 50 cupcakes for $2 each and 40 cookies for $0.5 each. Then the money from their sales was used to buy two basketballs that cost $40 each. The rest of the money was used to buy 20 bottles of energy drinks. How much does a bottle of energy drink cost?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
2
The basketball team sold 50 cupcakes for $2 each and 40 cookies for $0.5 each. Then the money from their sales was used to buy two basketballs that cost $40 each. The rest of the money was used to buy 20 bottles of energy drinks. How much does a bottle of energy drink cost?
train