A is 5 years older than B who is three times as old as C. The total of the ages of A, B and C is 54