Note the question is a tariff of $15 ABOVE the market price.
So, at $25, the government earns nothing because the market is solely supplied by the domestic industry.
At $20, the difference between the quantity supplied and the quantity demanded is 20.
The value of the tariff is $10, so 10x20...