Yash scored 40 marks in a test, getting 3 marks for each right answer and losing 1 mark for each wrong answer. Had 4 marks been awanded for each correct answer and 2 marks been deducted for each incorrect answer, then Yash would have scored 50 marks. How many questions were there in the test?
Let x be the number of correct answers and y be the number of wrong answers.
Case 1:
Yash scored 40 marks in a test, getting 3 marks for each right answer and losing 1 mark for each wrong answer
⇒ 3x−1y=40 ....(1)
Case 2:
Yash would have scored 50 marks in a test, getting 4 marks for each right answer and losing 2 mark for each wrong answer
⇒ 4x−2y=50 ....(2)
Multiplying equation (1) by 2,
2(3x−1y)=2×40
⇒ 6x−2y=80 ....(3)
Subtracting equation (2) from (3),
⇒ 6x−2y−(4x−2y)=80−50
⇒ 6x−2y−4x+2y=30
⇒ 2x=30
⇒ x=15
∴ y=3x−40=3×5−40=45−40=5
⇒ y=5
So, total number of questions =x+y=15+5=20