A fruit company delivers its fruit in two types of boxes: large and small. A delivery of 5 large boxes and 2 small boxes has a total weight of 117 kilograms. A delivery of 3 large boxes and 8 small boxes has a total weight of 162 kilograms. How much does each type of box weigh?