Equation with two or more unknowns
I have a questions that states the following:
Some friends bought a sailboat together and shared the cost equally. If two fewer friends had been involved, each of the others would have paid $3000 more. If one more friend had been involved each of the others would have paid $1000 less.
How many people owned a share of the sailboat?
I think that the equation goes x-2 = y + 3000 for one situation and x+1 = y-1000.
My problem is how do I solve with two unknown variables?
Could somebody please help me understand how to do this and if possible provide me a final answer so that when I solve the problem on my own will have the right answer to compare.
Thanks