Before the tariff, when selling at $10, domestic supply is 100 and foreign is 400-100=300... The revenue is 300x10=3000
After the tariff the foreign supply becomes 100 selling at 15, but 5 of that goes to the government as the tariff, therefore they're selling 100 at 10 which is 1000 revenue...