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