A line has equation y = x + 4. A curve has equation y = x2 - 4x - 2. The line intersects the curve at two points, A and B.
(a)Find the coordinates of A and B.(5)
(b)Find the coordinates of the midpoint of AB.(2)
(c)Find the length of AB, giving your answer as a simplified surd.(3)
(Total for Question 12 is 10 marks)