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