When both 17 and 31 are divided by n the remainder is 3. What is n?
A. 5
B. 7
C. 9
D. 28​