First, do not panic. You need to get a good night's sleep and have a proper breakfast.
Remember, it takes time to think. Look at the material, then look away and say to yourself, "Think of nothing". Then look back at the work.
Do one step at a time. First, find what is the problem. Then...