Finding the Equation of the Median