A shop owner blends three types of tea. A,B and C, in the ratio 6:4:7. If the mass of tea C in the mixture is 28kg, find the difference in the masses of the other two types of tea.