A fruit company delivers its fruit in two types of boxes: large and small. A delivery of 3 large boxes and 5 small boxes has a total weight of 75 kilograms. A delivery of 9 large boxes and 7 small boxes has a total weight of 171 kilograms. How much does each type of box weigh?