A is three years older than B who is thrice as old as C. The total of the ages of A, B and C is 59.