The line x=5 is the vertical line consisting of all points with x-coordinate equal to 5 (see attached graph).
A. Point (0,5) has first coordinate 0 (not 5).
C. Point (0,2) has first coordinate 0 (not 5).
D. Points (0,5) and (0,2) have first coordinates 0 (not 5).
B. Only in this option both points have first coordinates 5.
Answer: correct choice is B