A ship leaves port and travels on a bearing of 135 degrees at 12 knots for 3 hours and then on a bearing of 300 degrees at 8 knots for 11 hours. On what bearing and at what speed should the ship travel to arrive back at its starting point 24 hours after the voyage began? (Assume that one knot is a speed of one nautical mile per hour).