Chocolate beans are packed in 250 g and 750 g packages. The number of 250 g packages and 750 g packages are in the ratio 1 : 2. If two of the 750 g packages are replaced into 250 g packages, then the ratio becomes 5 : 3. Find

a) the original number of 250 g packages,

b) the total mass of the chocolate beans.