Sam took a math test and got 35 out of 50 answers correct. What was the percentage of correct answers?
A. 70%
B. 50%
C. 35%
D. 75%