A parabola has a vertex of (2,-2) and goes through the point (0,-18). Write the equation of the parabola in vertex form.