The equation of the parabola whose axis of symmetry is parallel to x-axis is

where the focus is

and the directrix is

In our case, the focus is (6,1) and the directrix is x =2; therefore, we have

and

These equations give

Hence, the equation of the parabola is
