The moon's orbit is affected in a noticeable way by both the gravity of the sun and the gravity of the earth.
(The moon's orbit; is affected; by both the gravity of the sun and the gravity of the earth)
The moon's orbit
is affected
by both the gravity of the sun and the gravity of the earth