In a test of 50 questions, the final score is calculated by subtracting three times the number of wrong answers from the number of correct answers.
If Gerry attempted all questions and received a final score of 22, how many correct answers did he give?
38324328