On a short quiz, the score is calculated by subtracting the number of incorrect answers from twice the number of correct answers. If a student answered 20 questions in total and achieved a score of 25, how many questions did the student answer correctly?