Least aggregate deferral method

Can anyone explain how to calculate a partnership year using the least aggregate deferral method? I came across a practice problem in my reading but there isn't an explanation of how to do it and I don't understand the math they used in the answer. Thanks.