This problem asks us to find the sum of the ages of two people, A and B. We are given two pieces of information that relate their ages, which we can translate into mathematical equations. This is a classic example of solving a system of linear equations.
Let the age of person A be represented by the variable $A$, and the age of person B be represented by the variable $B$.
$A + 5B = 36 \quad (Equation \, 1)$
$3A + 7B = 62 \quad (Equation \, 2)$
We now have a system of two linear equations with two variables:
$A + 5B = 36$
$3A + 7B = 62$
We can solve this system using the elimination method. The goal is to eliminate one variable ($A$ or $B$) by manipulating the equations.
$3 \times (A + 5B) = 3 \times 36$
$3A + 15B = 108 \quad (Equation \, 3)$
$(3A + 15B) - (3A + 7B) = 108 - 62$
$3A + 15B - 3A - 7B = 46$
$8B = 46$
$B = \frac{46}{8}$
$B = \frac{23}{4}$
$B = 5.75$
$A + 5 \left( \frac{23}{4} \right) = 36$
$A + \frac{115}{4} = 36$
$A = 36 - \frac{115}{4}$
$A = \frac{36 \times 4}{4} - \frac{115}{4}$
$A = \frac{144}{4} - \frac{115}{4}$
$A = \frac{144 - 115}{4}$
$A = \frac{29}{4}$
$A = 7.25$
The question asks for the sum of the ages of A and B, which is $A + B$.
So, the sum of the ages of A and B is 13 years.