For the first one, you are given two points....calculate the slope using this method:
https://web2.0calc.com/questions/what-is-the-slope-of-the-line-that-contains-the-points_1
For the second one, the mid point will be given by the averages of the x and y values
I'll do the 'x' one.....you do the 'y' one
(x1 + x2) / 2 = (1+5)/2 = 3 = x point of the midpoint.....now for the y:
?