He gets 500*.8=$<<500*.8=400>>400 off the cost of lenses

That means the lenses cost 500-400=$<<500-400=100>>100

The frames cost 200-50=$<<200-50=150>>150

So he pays 100+150=$<<100+150=250>>250

# Answer

250
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
James needs to get a new pair of glasses.  His frames cost $200 and the lenses cost $500.  Insurance will cover 80% of the cost of lenses and he has a $50 off coupon for frames.  How much does everything cost?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
250
James needs to get a new pair of glasses.  His frames cost $200 and the lenses cost $500.  Insurance will cover 80% of the cost of lenses and he has a $50 off coupon for frames.  How much does everything cost?
train