Legal analysis: after the company is declared bankrupt, the debts will be paid off with the remaining property of the company in the priority order of debts. After paying off the bankruptcy expenses and * * * beneficiary debts first, the bankrupt property shall be paid off in the following order: 1, the wages, medical care, disability allowance and pension expenses owed by the bankrupt to the employees, the basic old-age insurance and basic medical insurance expenses owed to the employees' personal accounts, and the compensation that should be paid to the employees according to laws and administrative regulations; 2. Social insurance premiums and taxes owed by the bankrupt other than those specified in the preceding paragraph; 3. Ordinary bankruptcy claims.
Legal basis: Article 186 of the Enterprise Bankruptcy Law of the People's Republic of China. After paying the liquidation expenses, employees' wages, social insurance expenses and statutory compensation, paying the taxes owed and paying off the debts of the company, the remaining property shall be distributed by the limited liability company in proportion to the shareholders' capital contribution, and by the joint stock limited company in proportion to the shares held by the shareholders.