The Total Cost equals the unit cost times the number of units bought. Let x be the number of units bought. The unit price is $24.95 if you buy less than 10 units (x < 10) So the Total Cost for less than 10 units is:
TOTAL COST = ($24.95)x if x < 10
If you buy between 10 and 20 units, you get 10% off, so the unit price reduces to ($24.95)(1 - 0.1) = $22.45. So the total cost is:
TOTAL COST = ($22.46)x if 10 <= x < 20
So far it looks like:
/
| ($24.95)x if x < 10
TOTAL COST = < ($22.46)x if 10 <= x < 20
| ..... if 20 <= x < 50
| ...... if x >= 50
\
Can you finish the last two? They are similar to the x <=10 < 20 case