A merchant made a gross profit of $40 from the sale of a vase. If this gross profit was 25% of the cost of the vase to the merchant, for how many dollars more should the merchant have sold the vase for the gross profit to have been 30% of the cost?
A) $2
B) $5
C) $8
D) $10
E) $12
I'm not sure how to set up the equation. I'd like to learn how to set up this type of problem.