Data:
Dog 1: A
Dog 2: B
You use substitution method:
1. Solve one variable in one equation:
Solve A in frist equation:
2. Use the solution for the variable in the other equation.
Use A=15-B in the second equation:
3. Solve the variable.
Solve for B:
As you get a quadratic function, you need to use a quadratic equation:
4. Use the value of B to find the value of A:
Then, One of the dogs have 11 years and the other dog has 4 years