human
There are several cookies in the jar. Taking 1 cookie away would leave half as many in the jar as if 5 were added. How many cookies are in the jar?
assistant
Define a variable ** Let C be the number of cookies
How many cookies would there be if 1 were taken away? ** There would be C-1 cookies.
What would half the number of cookies be if 5 were added? ** There would be (C+5)/2 cookies.
Write an equation ** C-1=(C+5)/2.
Multiply by 2 ** 2(C-1)=C+5
Simplify ** 2C-2=C+5
Simplify ** C=<<7=7>>7
#### 7