Let x be the number of questions worth 5 points and y be the number of questions worth 2 points.

Let us solve this system of equations using the substitution method.

Substitute eq. 1 into eq. 2

So, there are 14 questions worth 5 points.
Now substitute the value of x into eq. 1 to get the value of y

So, there are 15 questions worth 2 points.
Therefore, the correct answer is
14 questions worth 5 points and 15 questions worth 2 points.