A ship is sailing at 15 km/h on a bearing of 160◦T. At 9:00 am it is at P, and lighthouse L is due south. At 9:40 am it is at Q, and the lighthouse is on a bearing of 230◦T. Find the time, correct to the nearest minute, at which the lighthouse will be due west of the ship.