Joy is 4 times older than femi. In 6 years time the sum of their ages will be 42. What are their ages

j = 4f

j+6 + f+6 = 42
Now just solve for j and f.