To determine what is the price for each type of box, we can create a system of linear equations:
Let x be the price for small boxes
Let y be the price for large boxes
1 small box and 5 large boxes for a total of $38.

2 small boxes and three large boxes for a total of $34.

Substitute (1) in (2):

Solve for y(price for large boxes):

Large boxes cost $6.
Therefore, small boxes:

Small boxes costs $8.