North Korea and South Korea have agreed to hold talks to ease tension. Japan and China have welcomed the talks.