Write the opposite of going 40km to the east.
The opposite of going 40km to the east is the going 40km to the west because opposite of east is west.