write an equation for the line parallel to the x axis through the point 7,2

A line parallel to the x-axis has a slope of zero.

The general equation of a line of slope passing through a point P(x0,y0) is given by:
(y-y0)=m(x-x0)
so the required line is:
y-2=0(x-7)
therefore
y-2=0, or
y=2