The instructions I quoted are for both Lines 7 and 8. IRS doesn't make it clear whether that paragraph applies to both, or one or the other.