When a firm goes into administration, debts are paid to creditors through assets of the business in a descending order of priority. When the creditor who takes top priority is repaid fully, the next creditor claim is addressed and so on until the assets are no longer available.