For this case, the first thing we must do is define variables.
We have then:
x: number of years of Joan y: number of years of ellen We now write the system of equations:

Solving the system we have:

So that Joan is 21 years old then:
Answer: joan will be 21 years old in 12 years