The total mass of 2 packets of sugar and 6 packets of flour is 22 kg. If the total mass of 3 packets of sugar and 2 packets of flour is 19 kg, what is the mass of each packet of sugar and flour?​