6.(12%) Suppose that a line in the plane passes through point (0, 4).The slope of this line is m. Let d(m) be the distance
from point (3, 1) to the line.
(a) Compute the function d(m).