Below is the graph of a trigonometric function. It has a maximum point at $\left(\dfrac{1}{4}\pi,-2.2\right)$ and a minimum point at $\left(\dfrac{3}{4}\pi,-8.5\right)$.

**What is the midline equation of the function? **
$y=$ [[☃ math-keypad 1]]