Question: The sum of the ages of fandi and ahmad is $38$ seven years ago fandi was three times as old as ahmad. Find their present ages
1. **State the problem:**
We need to find the present ages of Fandi and Ahmad given:
- The sum of their current ages is $38$.
- Seven years ago, Fandi was three times as old as Ahmad.
2. **Define variables:**
Let $F$ be Fandi's present age and $A$ be Ahmad's present age.
3. **Write equations based on the problem:**
- Sum of ages: $$F + A = 38$$
- Seven years ago, Fandi's age was $F - 7$ and Ahmad's age was $A - 7$.
- Given: $$F - 7 = 3(A - 7)$$
4. **Solve the system of equations:**
From the second equation:
$$F - 7 = 3A - 21$$
$$F = 3A - 21 + 7$$
$$F = 3A - 14$$
Substitute $F$ in the first equation:
$$3A - 14 + A = 38$$
$$4A - 14 = 38$$
$$4A = 38 + 14$$
$$4A = 52$$
$$A = \frac{52}{4}$$
$$A = 13$$
5. **Find Fandi's age:**
$$F = 3(13) - 14$$
$$F = 39 - 14$$
$$F = 25$$
6. **Answer:**
Fandi is $25$ years old and Ahmad is $13$ years old.