In this task, you are given a sentence or phrase in English. You must translate it to Xhosa in a way that is equivalent in terms of meaning and grammatically correct.

This is because the precise behaviour of the ship when turning is influenced by the prevailing weather, etc.
Oku kungokuba indlela yokuziphatha eyiyo yenqanawa xa ijika ichatshazelwa ngokoyiswa yimozulu njalo-njalo.

This taught the sailor how many degrees must be added to, or subtracted from, his observed altitude in accordance with the positions of the Guards.
Le yafundisa abathengisi ukuba zingaphi izidonga ezunokongezwa, okanye zithatyathwe kujongo lomphakomo ngokwendawo eyiugadileyo.

When going downriver or leaving port, these buoy lights are then kept on their reverse sides i.e. red lights to starboard and green to port.

Xa usiya ezantsi komlambo, okanye ushiya izibuko lenqanawe lemiqondiso ibhabhayo yengozi yezibane igunwa kumacala ayo ajikayo umzekelo izibane ezibomvu kwincutshe yebhodi eziluhlaza zona kumazibuko enqanawa.