Answer:
if you failed 2/4 times there is still a chance you can pass only if you really try :)
-Try doing extra credit
-Do your best on every assignment
-if your school has office hours use them
-DO really well on your final (finals are usually around 20% of your overall grade)
-Just study a lot
Hope I helped :)