Sam and john need to buy some cardboard boxes. at the national bookstore of gaisano mall, they can buy either 10 small boxes and 12 medium boxes for p42, or 5 small and 10 medium boxes for p29. find the cost of each box.