On a history test, Rasha scored 40 points on the essay portion. In addition to the essay, there were multiple-choice questions worth three points each. Which expression represents Rasha’s total points if she answered p multiple-choice questions correctly?

A. 3 + 40p
B. 3 + p + 40
C. 40-3p
D. 40 + 3p