p = 25 (slider from 0 to 50, step 0.2)
d: x = p
g(x) = 5000 * x + 500 * x * (40 - x)
h: y = g(p)
A = Intersect(d, h)