A self-serve frozen yogurt store sells servings up to 12 ounces. It charges $0.50 per ounce for a serving between 0 and 8 ounces
, and $4 for any serving greater than 8 ounces and up to 12 ounces. Build the function that models the relationship between the price p(w) and of the weight w of a serving of yogurt.