The price of a shirt was reduced from $40 to $28. By what percentage was the price of the shirt reduced?

A. 28%

B. 12%

C. 70%

D. 30%