In 1962, the average cost of 1 gallon of gasoline in the United States was $0.31. The cost of gasoline increased by an average of 3% per year. What was the average cost of 1 gallon of gasoline in 1972?

A.
$0.32

B.
$0.40

C.
$0.42

D.
$0.93