Part A
I'm assuming you meant to say "you can get 1 point for each correct answer".
x = number of correct answers
y = number of incorrect answers
1x = points from the correct answers
2y = points you lose from the incorrect answers
1x-2y = total points
Answer: x-2y
============================================
Part B
Tim got x = 22 questions correct and y = 3 incorrect.
So,
x-2y = 22-2*3 = 22-6 = 16
Answer: 16
============================================
Side note: If Tim got a score of 16 out of 22+3 = 25, then the percentage is 16/25 = 0.64 = 64%. It appears that getting even a few wrong answers takes a pretty hefty toll on the final percentage.