A box is used to hold bolts for an assembly line. When there are 40 bolts in the box, the total mass is 280 g. When there are 65 bolts in the box, the total mass is 405 g. Find the mass of the box and the mass of each bolt.