1. If you study better, you will take better grades.
If you studied better, you could take better grades.
If you had studied better, you would have taken better grades.
2. If she knows, she will tell you.
If she knew, she would tell you.
If she had known, she would have told you.