While exploring a cave, Carl comes across a collection of $5$-pound rocks worth $14$ each, $4$-pound rocks worth $11$ each, and $1$-pound rocks worth $2$ each. There are at least $20$ of each size. He can carry at most $18$ pounds. What is the maximum value, in dollars, of the rocks he can carry out of the cave?
I was able to solve this quickly enough without too much of a hassle, but I don't get the official solution, which states
The answer is just $3\cdot 18=54$ minus the minimum number of rocks we need to make $18$ pounds, or $54-4=\boxed{\textbf{(C)} 50.}$ (AoPS)
How does this work? I think I'm almost getting there but I keep getting confused.