Ahmad's age is 13 and Fahad's age is 25
Explanation:
Let us consider Ahmad's age be 'a' and Fahad's age be 'f'.
Given that the sum of both their ages is 38
a + f = 38
f = 38 - a
Seven years ago both their age will be 7 less from now. So,
Ahmad's age will be (a-7) and Fahad's age will be (f - 7) and the given condition is that Fahad was 3 times as old as Ahmad.
(f - 7) = 3(a - 7)
f - 7 = 3a - 21
We can now substitute the f value in terms of a
(38 - a) - 7 = 3a - 21
38 - a - 7 + 21 = 3a
38 - 7 + 21 = 3a + a
52 = 4a
a = 52/ 4
a = 13
If a = 13 then
f = 38 - a
f = 38 - 13
f = 25
Ahmad's age is 13 and Fahad's age is 25.