Point B (5, 2) lies on the horizontal line with point A (1, 2), where the slope is 0, forming the line segment AB.
How to find the coordinates of a point on a line?
If the slope (m) = 0, it means that the line is a horizontal line. In the case of a horizontal line, the y-coordinate remains constant while the x-coordinate can vary. Therefore, any point on this line will have the same y-coordinate as the given point A (1, 2).
So, if A = (1, 2) and the slope (m) = 0, then any point B on the line will have the coordinates (x, 2) for any value of x.
You can choose any x-coordinate for point B. For example, let's say B has the x-coordinate x = 5. Then, the coordinates of B would be (5, 2).
So, point B is B = (5, 2), and you can draw line AB as a horizontal line passing through points A and B, as shown in the given diagram attached below.