Here's an example of a piecewise function that has three parts, where your choice of parts depends upon the input, x. If you order 57 shirts, you must use the "14x + 20" part of this function, because 57>50. Subst. 57 for x in "14x+20." You'll get 14*57 + 20, or $818.
What's the total cost of ordering 17 shirts? Note that 17 lies in the interval 0≤x<25. Therefore you use ONLY the "17x+20" part of the function:
17(17)+ 20 = $309.
32 shirts: 32 is in the second interval, so evaluate "15.80x+20."
We get: 15.80(32)+20 = $525.60 (answer)