A is owed 200,000, B 400,000, and 300,000 is available. How much does A receive?

Kitab al-Hajr: Insolvency, Interdiction and Creditors’ Rights