The perpendicular distance of the point from y-axis is abscissa of the point. Here 2 is the abscissa of the point.
The perpendicular distance of the point from x-axis is ordinate of the point. Here 4 is the ordinate of the point.
On the coordinate plane, points are written in the form of (abscissa, ordinate).
Since the direction is not mentioned, (2,4),(2,-4) and (-2,-4) are possible.
Therefore, x can have two values 2, -2.