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