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