The income tax in a certain state is 4% on taxable income up to $30,000, 5% on taxable income between $30,000 and $50,000, and 6% on taxable income over $50,000. The piecewise function below represents how many dollars a taxpayer earning x dollars in a year needs to pay as state income tax.