Answer:
$80
Explanation:
The function that tells you the cost is called a piecewise function since it is defined differently for different values of the input variable, x.
The weight of the dog is x in the function.
The function is defined differently for different weights.
If the weight of the dog is greater than 0 lb and up to 10 lb, then the cost is a fixed $20.
If the weight of the dog is greater than 10 lb and up to 30 lb, then the cost is $30.
If the weight of the dog is greater than 30 lb, then you must use the equation f(x) = 40 + 2(x - 30), where x is the weight of the dog.
In this case, the weight is 50 lb, so x = 50 lb, and since 50 > 30, we have x > 30, and we must use the equation
f(x) = 40 + 2(x - 30), for x = 50
We need to evaluate the function for x = 50.
f(50) = 40 + 2(50 - 30)
f(50) = 40 + 2(20)
f(50) = 40 + 40
f(50) = 80
Answer: $80