Ok - fixed the maths now.
If you put in $40,000 to make $200,000 (and had no other cost, and rent exactly covered the loan for 10 years, and didn't pay anything down on the principle, etc., etc.)
Then:
200,000 / 40,000 * 100 = 500%
(But then divide that by 10 years to equal 50% profit...