The endpoints of a line segment graphed on a coordinate plane are (8, 5) and (10, 1). What are the coordinates of the midpoint of the line segment?