Let S represent Samuel's current age, and M represent Maggie's current age.
We are given two pieces of information:
1. Maggie is four times as old as her cousin Samuel, so M = 4S.
2. In five years, Maggie will be six years less than three times Samuel's age, which can be written as (M + 5) = 3(S + 5) - 6.
Now, we have a system of two equations:
1. M = 4S
2. M + 5 = 3(S + 5) - 6
We can substitute the value of M from the first equation into the second equation:
4S + 5 = 3(S + 5) - 6
Now, let's solve for S:
4S + 5 = 3S + 15 - 6
Subtract 3S from both sides:
S + 5 = 9 - 6
Subtract 5 from both sides:
S = 3
So, Samuel is 3 years old. Maggie, being four times as old, is 4 x 3 = 12 years old.