Kojo is twice as old as Esi who in turn is 5 years older than Kweku. If their total age is 47 how old is each of them

Let's say Kweku's age is x.

Esi's age is x + 5.
Kojo's age is 2 * (x + 5) = 2x + 10.

The total age of the three is x + x + 5 + 2x + 10 = 4x + 15.
Since their total age is 47, we have 4x + 15 = 47.
Subtracting 15 from both sides gives 4x = 32.
Dividing both sides by 4 gives x = 8.

So, Kweku's age is x = 8 years.
Esi's age is x + 5 = 8 + 5 = 13 years.
Kojo's age is 2x + 10 = 2 * 8 + 10 = 16 + 10 = 26 years.

Therefore, Kweku is 8 years old, Esi is 13 years old, and Kojo is 26 years old.

Let's assign variables to the ages of each person:

Kojo's age = x
Esi's age = y
Kweku's age = z

We are given the following information:

1. Kojo is twice as old as Esi:
x = 2y

2. Esi is 5 years older than Kweku:
y = z + 5

3. The total age of all three is 47:
x + y + z = 47

We can now solve these three equations to find the ages of Kojo, Esi, and Kweku.

Substituting equation (2) into equation (1), we get:
x = 2(z + 5)

Substituting equation (2) and equation (3) into equation (1), we get:
2(z + 5) + (z + 5) + z = 47
2z + 10 + z + 5 + z = 47
4z + 15 = 47
4z = 47 - 15
4z = 32
z = 32/4
z = 8

Using equation (2), we can find the value of y:
y = 8 + 5
y = 13

Finally, we can find the value of x using equation (1):
x = 2y
x = 2(13)
x = 26

Therefore, Kojo is 26 years old, Esi is 13 years old, and Kweku is 8 years old.