The allowed losses on line 22 (I think this include carry over loss) will include the loss allowed to the extent of the net profit. For example, if one property profit for this year is $10k (line 21), you can add deductible loss (from carry over loss) on line 22 $10K to offset the profit, so the net gain or loss will be zero.