Question 1040367
This is the famous problem of Regiomontanus.  See

https://en.wikipedia.org/wiki/Regiomontanus%27_angle_maximization_problem  and 

read up.