Solving the Aggregate Liability Problem