The amount of money spent at the gas station varies directly with the number of gallons purchased. When 12 gallons of gas were purchased, the cost was $39.36. How much would 9 gallons of gas cost?

A. $52.48
B. $2.74
C. $30.36
D. $29.52