I have two methods in mind to tackle this problem. As I am writing this post, I do not know whether these two methods will yield the same result, but I think the results will be the same.
1st method: Expected value
Stage 1- Bin A has 1G + 0R
- Bin B has 4G + 10R
Stage 2
The expected number of green and red balls transferred to Bin A from Bin B are 0.57 and 1.43, respectively.
After the balls are transferred, the expected number of balls in the bins are as follows:
- Bin A has 1.57G + 1.43R
- Bin B has 3.43G + 8.57R
Stage 3
The expected number of green and red balls transferred to Bin B from Bin A are 0.52 and 0.48, respectively.
After the ball is transferred, the expected number of balls in the bins are as follows:
- Bin A has 1.05G + 0.95R
- Bin B has 3.95G + 9.05R
The probability of randomly selecting a green ball from Bin B after these stages is 3.95/13 = 30.4%
2nd method: Case by case
1st transfer
The balls transferred from Bin B to Bin A can be:
- a) 2R + 0G with a probability of 10/14 * 9/13 = 49.5%
- b) 0R + 2G with a probability of 4/14 * 3/13 = 6.6%
- c) 1R + 1G with a probability of 10/14 * 4/13 * 2 = 43.9%;
which means Bin A will have:
- a) 1G + 2R with a probability of 49.5%
- b) 3G + 0R with a probability of 6.6%
- c) 2G + 1R with a probability of 43.9%
and Bin B will have:
- a) 4G + 8R with a probability of 49.5%
- b) 2G + 10R with a probability of 6.6%
- c) 3G + 9R with a probability of 43.9%
2nd transfer
The ball transferred from Bin A to Bin B can be:
- If a) is the case for the first transfer, 33.3% G and 66.7% R.
- If b) is the case for the first transfer, 100% G and 0% R.
- If c) is the case for the first transfer, 66.7% G and 33.3% R.
Therefore, the probability distribution of Bin B's ball contents after these two transfers is:
- a1) 5G + 8R with a probability of 49.5% * 33.3% = 16.5%
- a2) 4G + 9R with a probability of 49.5% * 66.7% = 33.0%
- b1) 3G + 10R with a probability of 6.6% * 100% = 6.6%
- b2) 2G + 11R with a probability of 6.6% * 0% = 0%
- c1) 4G + 9R with a proability of 43.9% * 66.7% = 29.3%
- c2) 3G + 10R with a probability of 43.9% * 33.3% = 14.6%
Aggregating a2-c1 and b1-c2, we have three sets of possibilities (b2 is an impossible state):
- 1) 5G + 8R with a probability of 16.5%
- 2) 4G + 9R with a probability of 33.0% + 29.3% = 62.3%
- 3) 3G + 10R with a probability of 6.6% + 14.6% = 21.2%
As a result, the probability of picking a green ball from Bin B becomes 5/13 * 16.5% + 4/13 * 62.3% + 3/13 * 21.2% = 30.4%.
Looks like both methods yielded the same result and the second method turns out to be quite inefficient.