The second shirt is 15-6=<<15-6=9>>9 dollars.

Both shirts cost 15+9=<<15+9=24>>24 dollars.

# Answer

24
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
John buys 2 shirts. The first shirt costs $6 more than the second shirt. If the first shirt costs $15, how much, in dollars, did the shirts cost in total?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
24
John buys 2 shirts. The first shirt costs $6 more than the second shirt. If the first shirt costs $15, how much, in dollars, did the shirts cost in total?
train