A crate can hold 20 kilograms of tomatoes. Tommy has 3 crates which he bought for $330. He wants to sell the tomatoes for $6 per 1 kilogram but 3 kilograms of tomatoes were rotten. How much will be Tommy's profit from selling those tomatoes?
Tommy has a total of 20 x 3 = 
<gadget id="calculator">20*3</gadget>
<output>60</output>
60 kilograms of tomatoes.
Only 60 - 3 = 
<gadget id="calculator">60-3</gadget>
<output>57</output>
57 kilograms can be sold.
His earnings for the tomatoes will be $
<gadget id="calculator">342</gadget>
<output>342</output>
342.
Thus, his profit will be $342 - $330 = $
<gadget id="calculator">342-330</gadget>
<output>12</output>
12.

<result>12</result>