If the father is 22 years older than his son, and the sum of their ages is 38 years, we can set up the following equations to represent this information:
Copy code
father + son = 38
father = son + 22
We can solve for the father's and son's ages by substituting the second equation into the first equation:
Copy code
(son + 22) + son = 38
2 * son + 22 = 38
2 * son = 16
son = 8
Therefore, the son's age is 8 years, and the father's age is 8 + 22 = <<8+22=30>>30 years.