So...
STEP 0: Read the problem carefully. Twice.
Step 1: study the article here
http://en.wikipedia.org/wiki/Law_of_total_probability Not used in the exercise, but very useful for understanding how it works

Step 2: UDERSTAND THAT DUE TO THE NATURE OF THE TASK A COMPLETE SET OF OUTCOMES MUST BE EXAMINED. Read the problem again. Twice.
Step 3: construct a complete set of outcomes (leftmost set of figures). Each row represents a possible outcome of tests, where 1 stands for successful pass, 0 - fail.
Step 4: compute a bonuse a leader on each level receives given the outcome is like in step 3. (Second set of figures)
Step 5: compute effective leader's ratings. Check that under any nominal ratings sets effectives do not exceed MaxRating. (Third set)
Step 6: Compute a conditional probability for every leader's level to obtain the result contained in outcome. (i.e. if outcome is 1 1 0 1 0 it means that one needs to compute say probability for C to fail given that others are 1 1 1 0 respectively). (Fourth set)
Step 7: Compute probabilities of outcomes. (Second column from the right. Has bold borders)
Step 8: Make sure those probabilities being summed up give 1. If not, return to Step 3. (computed in the bottom of the column)
Step 9: Achieve the target, i.e. compute the probability for a unit to receive a command bonus. (right-bottom cell, has bold borders).
Step 10: Buy everyone a drink. Ehh... Well... Human only. Othervise Sir Muddy's horse will ruin it's health and lead you into povetry.
_________________


Leib-Guard Cuirassiers Regiment's
General-Fieldmareshal Count Anton Kosyanenko
Commanding Astrakhan grenadiers regiment
2nd Grenadiers Division, Russian Contingent