Demba wouldn’t have failed the exam if he had been serious.(type 3).
The conditional
“If clauses”: Demba wouldn’t have failed the exam if he ………. (be) serious.