An educated real estate investor can invest for both capital gains and cash flow and still pay little to nothing in taxes, legally.