I am trying to solve a probability problem with coins of two types. I will refer to them as circles and squares. The task is:
A boy has 4 circles and 3 squares in his left pocket and 2 circles and 1 square in his right pocket. The boy transfers 2 random objects from his left pocket to his right pocket. Then he transfers two random objects from his right pocket back to his left pocket. The boy then pulls an object from his right pocket. What is the probability he has pulled a circle?
I tried forming Hypotheses $H_{cc}, H_{cr}, H_{rr}, F_{cc}, F_{cr}, F_{rr}$ for the corresponding transfers:
Let $H_{ij}$, for $i,j\in\{c,r\}$, represent taking two circles, a circle and a rectangle, or two rectangles in the transfer from the left to the right pocket.
The definition of $F_{xy}$ is similar, but in the opposite direction.
I realised it's unwise to then calculate $P(F_{xy}|H_{ij})$, so I gave up on that idea.
I considered the following aproach instead:
Let $k$ be the number of cirlces moved from the left pocket to the right pocket.
Let $l$ be the number of circles moved from the right pocket to the left pocket.
Thus the probability of
- moving $k$ circles to the right pocket is $\frac{C^k_4\times C^{2-k}_3}{C^2_7}$
- moving $l$ circles back to the left pocket is: $\frac{C^l_{2+k}\times C^{2-l}_{1+2-k}}{C^2_5}$
- pulling a circle out of the right pocket after moving two object from left to right and then two object from right to left is $\frac{2+k-l}{3}$
How can I calculate the probabilty?
If $A=\{\text{pulling a circle from the right pocket after the transfers}\}$, then $$P(A)=\sum{P(A|F_{xy})P(F_{xy})}$$
I am not sure what to do next.
EDIT:
If I rename my hypotheses as $H_k$ and $F_l$, where $k$ and $l$ are the number of circles transferred, resp, left $\to$ right and right $\to$ left, then $$P(A)=\sum_{l=0}^2{P(A|F_l)P(F_l)}$$ but $P(F_l)$ should be $P(F_l|H_k)P(H_k)$, therefore $$P(A)=\sum_{k=0}^2{\sum_{l=0}^2{\frac{2+k-l}{3}\times\frac{C^l_{2+k}\times C^{2-l}_{1+2-k}}{C^2_5}\times\frac{C^k_4\times C^{2-k}_3}{C^2_7}}}$$
Am I correct?