History homework help

A vertical curve is to connect two tangents that intersect at station 50+00 and the elevation 500.00ft. The back tangent gradient is -4 percent, the forward tangent gradient is 2 percent, and the elevation of the curve at station 48+50 must equal to at least 510ft. What is the required length of the curve?