The present ages of A,B and C are in proportions 3:4:5. Six years ago, the sum of their ages was 54.