CREATE TABLE table_36345 ("Throne Name" TEXT, "Title" TEXT, "Born-Died" TEXT, "Entered office" TEXT, "Left office" TEXT, "Family Relations" TEXT)

What is the title of the king who left office in 982 and entered office in 949?
SELECT "Title" FROM table_36345 WHERE "Left office" = '982' AND "Entered office" = '949'
SELECT "Title" FROM "table_36345" WHERE "Entered office" = '949' AND "Left office" = '982'