If I pass my exams, I will treat myself to a nice dinner. (Type 1)If I had studied harder, I would have aced the test. (Type 3)If it rains tomorrow, we will have to cancel our picnic. (Type 1)If I were you, I would apologize for my mistake. (Type 2)If he had known about the party, he would have come. (Type 3)