Each question is worth 4 points (100/25=4) Therefore, when you divide 83 by 4, you get 20.75, as as he's aiming to get a B, this needs to be rounded up to 21. Xio would need to get 21 questions right to get a B, hope this helps :)
3(X-2) = 22- x
Expanding the bracket by multiplying the 3 outside the bracket with x and 2, it becomes 3x- 6= 22-×
Take like terms of X
3x+x = 22+6
4× =28
Divide both sides by 4
X= 7