If I had known it earlier I would have come with you.
1. If I ( had felt) better I ( would have gone) to the party. 2. If he ( had known) I was free he ( would have invited) me to dinner. 3. If I ( had worked) hard at school I ( would have got) a better job after finishing. 4. If they ( had asked) us we ( would have helped) them. 5. If you ( had studied) more you ( would have passed) the test. 6. If I ( had worn) a rain-coat I ( would not have got) wet. 7. If we ( had had ) the key we ( would have gone) into the house. 8. If the weather (had been) nice I ( would have gone) for a walk. 9. If he ( had had ) the money he (buy) it at once. 10. If Jack ( had been) present the party ( would have been) a success.