f(x) = 90.0 * x
g(x) = -150.0 * x + 795.0
h(x) = 495.0
p(x) = 320.0
q(x) = 250.0
r(x) = g(x - 0.389)