A ship sails 12km on a bearing of 250, then changes course to a bearing of 135, and sails a further 18km. Find the bearing it would need to sail on, and the distance it would need to travel, inorder to get back to its starting point.