For a line to be perpendicular to the x-axis in a 2 dimensional space, it must be composed of points with the same x coordinate and varying in the y coordinate.
X is, therefore, a constant and since the line goes through (-3,1), the equation we are looking for is:
X = -3