Find amplitude and midline of the function

(a) The midline is the line with equation help (equations)
(b) The amplitude is help (numbers)

You can earn partial credit on this problem.