Under a certain Law, the first P30,000.00 of earnings are subjected to 12% tax,
earning greater than P30,000.00 and up to P50,000.00 are subjected to 15%tax, and earnings greater than P50,000.00 are taxed at 20%. Write a piecewise function that models this