Let X Y Z be an acute-angled triangle. Let s be the side-length of the square which has two adjacent vertices on side Y Z, one vertex on side X Y and one vertex on side X Z. Let h be the distance from X to the side Y Z and let b be the distance from Y to Z.
(a) If the vertices have coordinates X=(2,4), Y=(0,0) and Z=(4,0), find b, h and s.
(b) Given the height h=3 and s=2, find the base b.
(c) If the area of the square is 2017, determine the minimum area of triangle X Y Z.