The shirts each cost $20 / 2 shirts = $<<20/2=10>>10.

Let X be the pants' cost.

Peter bought 2 pairs of pants and 5 shirts for 2*X + 5 shirts * $10/shirt = $62.

Subtracting $50 from both sides, we get 2*X = $12.

Dividing both sides by 2, we get X = $6.

# Answer

6
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
At the same store, Peter bought 2 pairs of pants and 5 shirts for $62 total, and Jessica bought 2 shirts for $20 total. Each pair of pants cost the same price, and each shirt cost the same price. How much does 1 pair of pants cost?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
6
At the same store, Peter bought 2 pairs of pants and 5 shirts for $62 total, and Jessica bought 2 shirts for $20 total. Each pair of pants cost the same price, and each shirt cost the same price. How much does 1 pair of pants cost?
train