A factory has two lines that fill packets. Line A has 20 packets in a sample with a mean mass of 30g and a standard deviation of 4g. Line B has 30 packets with a mean mass of 40g and a standard deviation of 6g. The inspector puts all 50 packets together. What is the variance of the combined sample, in g2?