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:
[tex]x + y = 19\\2y-2 = x[/tex]
Substituting the second equation into the first:
[tex]2y-2 + y = 193y-2 = 19\\3y = 19 + 2\\3y = 21\\y = \frac {21} {3}\\y = 7[/tex]
So, Kate is 7 years old.
[tex]x = 2y-2\\x = 2 * 7-2\\x = 14-2\\x = 12[/tex]
James is 12 years old.
Answer:
JAmes is 12 years old
Kate is 7 years old