A delivery truck is transporting boxes of two sizes: large and small. The large boxes weigh 40 pounds each, and the small boxes weigh 20 pounds each. There are 120 boxes in total. If the truck is carrying a total of 3700 pounds in boxes, how many of each type of box is it carrying?