Answer:
Step-by-step explanation:
We are basically needing to solve for the time in the equation d = rt, where d is the distance around Mars (aka the circumference), r is the velocity, and t is time. We need to find the circumference and the velocity. We will begin with the velocity.
Because the gravitational attraction between Phobos and Mars provides the centripetal acceleration necessary to keep Phobos in its (sort of) circular path, the equation we use for this is:
which says that Force supplied by gravity is equal to the centripetal force. Expanding that:

When we move that around mathematically to solve for the velocity value, what we end up with is:
and filling in:
and we get that
v = 2100 m/s
Now for the circumference:
C = 2πr and
C = 2(3.1415)(9.38 × 10⁶) so
C = 5.9 × 10⁷
Putting that all together in the C = vT equation:
5.9 × 10⁷ = 2100T so
T = 2.8 × 10⁴ sec or 7.8 hours