Answer:
The equation of the line segment AB is:

The graph of the line segment AB is also attached.
Explanation:
Given the points
Determining the slope between A(3,5) and B(5,1)




Using the point-slope form of the line equation

where m is the slope of the line and (x₁, y₁) is the point
substituting the values m = -2 and the point (3, 5) in the equation





Therefore, the equation of the line segment AB is:

The graph of the line segment AB is also attached.