The answer is D.
We know that the perpendicular distance of a point from the x-axis gives y-coordinate of that point. Here, foot of perpendicular lies in the negative direction of x-axis, so perpendicular distance can be measured in II quadrant or III quadrant.
Hence, the point P has y-coordinate = 5 or -5.