In Whitby, James Cook served in the merchant navy. On his first assignment on the collier Freelove, he spent many years traveling between London and Tyne. He also got involved in learning algebra, geometry, trigonometry, astronomy, and navigation. After three years, he took up to ship trading in the Baltic Sea.