Choose the nearest Indirect Speech sentence: They said, "It was raining heavily, when they came out of the theatre"?

Choose the nearest Indirect Speech sentence: They said, "It was raining heavily, when they came out of the theatre"?

Explanation
The correct nearest indirect speech sentence for "They said, 'It was raining heavily, when they came out of the theatre'" is: They said that it had been raining heavily, when they came out of the theatre.