Suppose Cheryl runs a distance . Then we can compute the distance she swims in terms of x by building a right triangle with sides 200, 200-x, and D_swim. Hence,

The amount of time taken is

(units are in seconds).

Simplify the expression for T, find T'(x), find critical points.