Final answer:
The moon's orbit depends on the planet's mass and the moon's velocity. If Planet X is similar to Earth, the moon's path will likely be an elliptical orbit around it. If Planet X no longer exists, the moon will continue in a straight line until influenced by another celestial body's gravity.
Step-by-step explanation:
The moon's orbit around a planet depends on the planet's mass and the moon's velocity.
If Planet X is similar to Earth and has a moon similar to Earth's moon, then the moon's path will most likely be an elliptical orbit around Planet X.
If Planet X is destroyed or no longer exists, the moon will continue to move in a straight line due to its inertia until it is affected by the gravitational pull of another celestial body, which could alter its path.
Learn more about Moon's orbit around a planet