The salaries of A and B are in the ratio 8:3. The salaries of B and C are in the ratio 5:12. Express the salaries of A,B and C in the form of a ratio.