STRUCTURE
  the if-clause the main clause
  Past Simple
would + V
+ If you studied hard, you would pass the exam.
If you did not study hard, you would not pass the exam.
? If you studied hard, would you pass the exam?
 
FORMULAS
Affirmative (+)
If [V2], [would + V].
[would + V] if [V2].
 
E.g. 
If you studied hard, you would pass the exam.
You would pass the exam if you studied hard.
 
Negative (-)
If [did not + V], [would not + V].
[would not + V] if [did not + V].
 
E.g. 
If you did not study hard, you would not pass the exam.
You would not pass the exam if you did not studied hard.
 
Interrogative (?)
If [V2], [would + Subject + V]?
[would + Subject + V] if [V2]?
 
E.g. 
If you studied hard, would you pass the exam?
Would pass the exam if you studied hard?
 
NOTE!
We can use were or was with I, he, she, it in the second conditional sentences.
If I were rich I would travel a lot. = If I was rich I would travel a lot.
If it were raining ... = If it was raining ...
If he were here ... = If he was here
If she were younger ... = If she was younger ...
 
We use “If I were you, I would(n't) + V” to give advice.
If I were you, I wouldn't go there.
 
***
V — Verb (the infinitive of the verb without "to"). E.g. write, go, listen, etc.
V2 — Verb in the 2nd form (Past Simple). E.g. wrote, went, listened, etc.
Revise irregular verbs here and how to add "ed" to regular verbs here.