Three goats in a farm weighed 17 kg 360 g, 18 kg 120 g and 22 kg 145 g. What was the total mass of the goats?