The two were freed after a diplomatic trip to Pyongyang by former president Bill Clinton .