Here's another way to check this, using slope instead of coordinates directly. A line is perpendicular to the X-axis when its slope is undefined, which happens only when the two points have equal x-coordinates and different y-coordinates, giving a zero denominator in the slope formula.
Statement I alone gives M = (5, 12). Nothing is known about N, so there is no way to compute a slope or compare x-coordinates. This statement by itself settles nothing.
Statement II alone says N sits on the X-axis, 5 units from the origin. Distance from the origin only fixes how far N is, not which direction, so N could be at (5, 0) or at (-5, 0). Without knowing M's coordinates at all, this statement by itself also settles nothing.
Now combine them. With M = (5, 12) fixed by statement I, check both possible positions of N from statement II:
Both positions of N are equally allowed by statement II, and they lead to opposite answers. So even after combining both statements, we cannot pin down a single answer.
Let's summarize:
Since the two allowed cases for N give different answers, the correct choice is that the question cannot be answered even with both statements together.