A retailers has an account for #20000 from a manufacturer who gives two months' credit, but offers a cash discount of 5% for prompt payment. The retailer borrows #20000 from his bank at 9% per annum for two months and pays promptly to secure the cash discount. How much does he gain by this transaction?