Given data:
The given amount Mary got per hour is A=$12 .
The total hours Mary works is H=10 hours.
The percentage of commission Mary got is P=10%=0.1.
The sale amount is S=$1,500.
The expression for the Money earned by Mary is,

Substitute the given values in the above expression.

Thus, the amount earned by Mary is $270, so option (D) is correct.