How can I avoid capital gains tax on real estate rental?

Sale of two-unit home is really two sales