If you're doing a median line of regression then remember you have to split the points into three sections. You then have to find a median point for each of the three sections.
Then you draw a line through the first and third median points. Finally, move this line vertically one-third of the way towards the second point.
Since the actual line of regression will be parallel to that first line, it will have the same gradient as that first line. Since that first line goes through the first and third median points, you can get the gradient from them - every time.