Let's use x to represent Matthew's age.
If Gabriel is five years older than Matthew, Gabriel's age is x + 5.
And Joe is twice as old as Gabriel, so Joe's age is (x + 5) * 2 = 2x + 10.
We know that the sum of their ages is 63, so we can set up the equation:
x + (x + 5) + (2x + 10) = 63
4x + 15 = 63
4x = 48
x = 12
So, Matthew is 12 years old, Gabriel is 12 + 5 = 17 years old and Joe is 2 * 17 = 34 years old.