On getting a sum right, Prof. Ed hands out 5 candies to a student, while he hands 2 candies if the answer is incorrect. During a test, if 10 students were able to give a correct answer out of 20 students, then the total number of candies Prof Ed. had to give is?