2.80: Optimising journey time across a field

The rectangle represents a ploughed field where m and m. Joseph needs to walk from to in the least possible time. He can walk at on the ploughed field and at on any part of the path along the edge of the field. He walks from to and then from to . The distance m.
(a)[3]
Find, in terms of , the total time, s, Joseph takes for the journey.
(b)[6]
Given that can vary, find the value of for which is a minimum and hence find the minimum value of .
