1/2 + 1/4 + 1/6 + 1/9 = 37/36, so the right ratios are
2% use 1/2 x 36/37 = 18/37 and its risk is 2% x 18/37 = 36%/37.
4% use 1/4 x 36/37 = 9/37 and its risk is 4% x 9/37 = 36%/37.
6% use 1/6 x 36/37 = 6/37 and its risk is 6% x 6/37 = 36%/37.
9% use 1/9 x 36/37 = 4/37 and its risk is 9% x 4/37 = 36%/37.
If you don't like the fractions, multiply everything by 37 and get:
Buy 18 of the 2% to give 36% risk
Buy 9 of the 4% to give 36% risk
Buy 6 of the 6% to give 36% risk
Buy 4 of the 9% to give 36% risk.
All the risks are the same.
2% use 1/2 x 36/37 = 18/37 and its risk is 2% x 18/37 = 36%/37.
4% use 1/4 x 36/37 = 9/37 and its risk is 4% x 9/37 = 36%/37.
6% use 1/6 x 36/37 = 6/37 and its risk is 6% x 6/37 = 36%/37.
9% use 1/9 x 36/37 = 4/37 and its risk is 9% x 4/37 = 36%/37.
If you don't like the fractions, multiply everything by 37 and get:
Buy 18 of the 2% to give 36% risk
Buy 9 of the 4% to give 36% risk
Buy 6 of the 6% to give 36% risk
Buy 4 of the 9% to give 36% risk.
All the risks are the same.