Ali spent 480/2=$<<480/2=240>>240 on food.

After buying the food, Ali had 480-240=$<<480-240=240>>240 left.

He spent 240/3=<<240/3=80>>80 dollars on a pair of glasses.

He had 240-80=$<<240-80=160>>160 left.

# Answer

160
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Ali has $480. He spent half of it on food, and then he spent a third of what was left on a pair of glasses. How much money did he have left?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
160
Ali has $480. He spent half of it on food, and then he spent a third of what was left on a pair of glasses. How much money did he have left?
train