I got this feedback from my teacher about my code but i dont know how to fix it

There is an issue with the area, it might be because you do not calculate it until after all the conditionals. Also...