Set up a system of equations.
x+y=110
35x + 50y = 5100
Solve for a variable:
y=110-x
Plug this back into the other equation
35x + 50(110-x)=5100
Solve
35x + 5500 - 50x = 5100
-15x = -400
X = 26.66
Plug that into first equation to solve for y:
X+y=110
26.6+y=110
Y=110-26.6
Y=83.4
26.6 small boxes, 83.4 large