We are given the following information:
- \( P(E_1) = \frac{2}{5}, P(E_2) = \frac{3}{5} \) (probabilities of visiting temples A and B respectively).
- \( P(A | E_1) = \frac{1}{3} \), the probability that Meera meets her friend at temple A, given that she visits temple A.
- \( P(A | E_2) = \frac{2}{7} \), the probability that Meera meets her friend at temple B, given that she visits temple B.
We need to find \( P(E_2 | A) \), the probability that Meera visits temple B given that she met her friend.
Using Bayes’ Theorem:
\[
P(E_2 | A) = \frac{P(A | E_2) P(E_2)}{P(A)}
\]
We know that:
\[
P(A) = P(A | E_1) P(E_1) + P(A | E_2) P(E_2)
\]
Substituting the given values:
\[
P(A) = \left(\frac{1}{3} \times \frac{2}{5}\right) + \left(\frac{2}{7} \times \frac{3}{5}\right)
\]
\[
P(A) = \frac{2}{15} + \frac{6}{35} = \frac{14}{35} = \frac{2}{5}
\]
Now applying Bayes' Theorem:
\[
P(E_2 | A) = \frac{\left(\frac{2}{7} \times \frac{3}{5}\right)}{\frac{9}{16}} = \frac{9}{16}
\]
Thus, the probability that Meera met her friend at temple B is \( \frac{9}{16} \).