We will need two equations, which we can solve by substitution.
Let s = shirt cost, and let f = order fee
The first equation is f + 50s= $374.50
The second equation is f + 500s = $2370.00
In both equations, the value for f is the same ("one time order fee")
Let's solve the first equation for f to get f = $374.50 - 50s
Then, we will substitute that value for f in the second equation to get
$374.50 - 50s + 500s = $2370.00
450s = $1995.50
solving, s = $4.43444
The fee then equals 50 x $4.43444 + f = $374.50 - 221.72, and f = $152.78
To check, we will put that value into the second equation, to get
500 x $4.4344 + $152.78 = $2217.20 + $152.78 = $2369.98