Both Mars and the Earth rotate so that the Sun rises in the east and sets in the west, and their moons all orbit in the same direction as the planets rotate.
(Both Mars and the Earth; rotate; so that the Sun rises in the east and sets in the west) (the Sun; rises; L:in the east) (the planets; rotate; )
Both Mars and the Earth the Sun the planets
rotate rises rotate
so that the Sun rises in the east and sets in the west
L:in the east