Let x be the number of 5 point questions and y be the number of 15 point questions.
So we have,
5x+15y = 350 ....... (1)
Also, x + y = 40
So,
Substituting the value of x in first equation,
Therefore,
Thus, there are 25 questions of 5 points and 15 questions of 15 points.