Let x be the number of toys Mandy has.

Anna has 3*x toys.

Amanda has 3*x+2 toys.

x+3*x+3*x+2=142

7*x+2=142

7*x=140

x=<<20=20>>20

# Answer

20
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Anna has 3 times as many toys as Mandy and 2 fewer toys than Amanda. If they have 142 toys all together, how many toys does Mandy have?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
20
Anna has 3 times as many toys as Mandy and 2 fewer toys than Amanda. If they have 142 toys all together, how many toys does Mandy have?
train