We would have passed if we had studied harder.
**** the above sentence is in subjunctive mood
**** an explanation: It is a IF conditional clause that expresses an imagined condition, in which we use "had". IF we HAD studied harder (past perfect to indicate an imagined condition), we would have passed (possible outcome).