Which of the following sentences contains a grammatically correct use of the subjunctive mood?
- A If he would have studied harder, he might pass the exam.
- B If I will win the lottery, I'll buy a new house.
- C If they was more careful, accidents wouldn't happen.
- D If she were to come tomorrow, I would be surprised.