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? Let's think step by step and output the final answer after "####".
user
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
#### 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