Feeling Hopeless In Studies

I feel like a failure, I could barely answer my long Algebra and Filipino assignments. I really feel like I’m just going to fail this semester. I admitted to my parents I felt this way, they told me that it’s okay if you fail, at least do the best you can. I guess I should just keep trying..