To encourage bob to work his math problems correctly, his dad said he'd pay him 10 cents for each correct answer and charge him 5 cents for each incorrect answer. If he received a dime after doing 25 problems, how many problems did Bob get right?