A box containing 5 red balls and 3 green balls weighs 43 g. When the box contains 3 red balls and 5 red balls it weighs 37g. When it contains one ball of each it weighs 19g. What is the mass of the box and of each ball.