Entering payments for Amended filing status

Amending return for filing status. One spouse received refund, one spouse made payment. Do you separately enter refund (Line 18)  and payment (Line 16) or do you net them together and enter one line (Line 16 or 18) on 1040-x