Having a Venn Diagram would not doubt help you a lot here.
Here, I made it for you. The three colours together represent 45%.
So, you get an equation here.
I denoted 'x' by the number of examinees who failed in both subjects.
Can you try to answer your questions now? Post your answers! :)