The medians are harder (and messier) than the altitudes.
You need to find the midpoints of each side.
Remember that if the co-ordinates of a line segment are (a,b) and (c,d), then the co-ordinates of the midpoint are [(a+c)/2,(b+d)/2].
The you need to use the 2 point formula to get the equations from each vertex to the opposite midpoint.