T=\frac{ 1}{2 }\sqrt{50^2+x^2}+\frac{ 1 }{ 4 }(50-x) for [0, 50]