Can someone help me with this puzzle?
There are 2 boxes A and B. Both contain red and green balls. It is known that in one of the boxes, 1/2 of the balls are red and 1/2 are green; and in the other box, 1/4 of the balls are red and 3/4 are green. Let the box in which 1/2 of the balls are red be denoted box W and suppose P(W=A) = 'X' and P(W=

= 1 - 'X'. Suppose you may select one ball at random from either box and that, after observing its color, you must decide whether W=A or W=B. Prove that if 1/2 < X < 2/3, to maximize the probability of making a correct decision, you should select the ball from box B. Prove also that if 2/3 < X < 1, then it does not matter from which box the ball is selected.