For this case we have to:
x: Be the variable that represents James's age
y: Be the variable that represents Kate's age
According to the data we have:
Substituting the second equation into the first:
So, Kate is 7 years old.
James is 12 years old.
Answer:
JAmes is 12 years old
Kate is 7 years old