C(q) = (1 / 1000 * q^(3)) - (1 / 20 * q^(2)) + q + 12
M: (50, C(50))
N: (51, C(51))
P: (51, C(50))
f = Segment(M, P)
g = Segment(P, N)