They were transferred onto two lifeboats and taken to shore in the UK.