The test question shall contain 20 questions in all.
Therefore, if the 2-point question is x, and the 4-point question is y then
x + y = 20
Also, all the 2-point questions plus all the 4-point questions all added together would equal 50points. Therefore, that would be
2x + 4y = 50
With these pair of simultaneous equations we can now solve as follows;

Therefore, Janice can include
15 two-point test