The postal service offers flat-rate shipping for priority mail in special boxes. Today, Duncan shipped 10 small boxes and 9 medium boxes, which cost him $149 to ship. Meanwhile, Hannah shipped 7 small boxes and 1 medium box, and paid $46. How much does it cost to ship these two sizes of box?