Thomas answered most of his math homework questions. If he sees that he has 4 questions left and he knows there were a total of 25 questions, how many questions did he already answer?