The cost of the jerseys is 5 jerseys × $2/jersey = $<<5*2=10>>10.
The total cost of the jerseys, the basketball, and the shorts is $10 + $18 + $8 = $<<10+18+8=36>>36.
Jeremy has $50 - $36 = $<<50-36=14>>14 left.
#### 14