2. A town charges for water usage based on the following rules: For the first 1000gallons, the charges
is 150pesos. For any usage between 1001 to 3000 gallons, the charge is 5.50pesos per gallon. For
any usage above 3000gallons, the charge is 300pesos. Express a piecewise function to represent
the total cost C(x) as a function of the number of gallon x used.