The center of the sphere of radius 3 is (0, 4, 8).
a) The point nearest the plane z=0, will be (0, 4, 5), one radius length below the center toward the xy-plane.
b) The line between the sphere's center and the given point is (x, z) = (0, 8). As in part (a), the closest point on that line to the given point is one radius-length from center along that line, or (0, 7, 8).