Step 1: The Idylls of the King is by Alfred Tennyson, so A matches III.
Step 2: Dramatic Lyrics belongs to Robert Browning, so B matches IV.
Step 3: Sonnets from the Portuguese is by Elizabeth Barrett Browning, so C matches I.
Step 4: Poems and Ballads is by A.C. Swinburne, so D matches II.
Step 5: This gives A-III, B-IV, C-I, D-II which matches option 3.