human
If Sam and Harry have 100 feet of fence between them, and they agree to split it with Harry getting 60 feet more than Sam, how much is left over for Sam?
assistant
Define a variable ** Let x be the amount of fence Sam gets and y be the amount Harry gets. We know that y = x + 60, and y + x = 100.
Write an equation ** Substituting the first equation into the second equation, we get 2x+60=100
Subtract 60 ** Subtracting the 60 from both sides, we get 2x=40
How much fence does Sam have left over? ** We divide each side by two, leaving x=20. This means Sam has 20 feet of fence left over.
#### 20