Correct Answer & Explanation
Option B
• This sentence describes two actions in the past: one ongoing action ('having dinner') and another shorter action that interrupted it ('lights went out').
• The ongoing action in the past is expressed using the Past Continuous Tense.
• The structure for Past Continuous Tense is 'Subject + was/were + V1-ing'. Therefore, 'were having' is the correct choice.