The first 3 shirts cost 15*3=<<15*3=45>>45 dollars in total.

There are 5-3=<<5-3=2>>2 shirts remaining.

The remaining 2 shirts cost 20*2=<<20*2=40>>40 dollars in total.

The five shirts cost 45+40=<<45+40=85>>85 dollars.

# Answer

85
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Five shirts are bought. Of the 5 shirts, there are 3 shirts that cost $15 each. The remaining shirts are $20 each. What is the cost, in dollars, of all 5 shirts?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
85
Five shirts are bought. Of the 5 shirts, there are 3 shirts that cost $15 each. The remaining shirts are $20 each. What is the cost, in dollars, of all 5 shirts?
train