Tomas got a score of 75% correct on an exam. There were 24 questions on the exam. What number of questions did Tomas get correct?

A
6

B
12

C
16

D
18