Jane and John wish to buy a candy. However Jane needs seven more cents to buy the candy, while John needs one more cent. They decide to buy only one candy together, but discover that they do not have enough money. How much does the candy cost?
Let x= John's amount of money and y=Jane's amount of money, c=candy cost. We have c-1=x, c-7=y, and x+y