To determine how much money Ted made available to firms for investing, we focus on his savings. After spending $30,000 from his after-tax income of $40,000, he saved $10,000. This savings is what he makes available to firms for investing.
So the answer is:
$10,000