I was reading Bayes' Theorem and I came across a question. The question was:
What is the probability of picking a white ball from a bag, when there are two bags, Bag A and Bag B?
Bag A contains $2$ white and $3$ red balls and Bag B contains $3$ white and $4$ red balls.
So, by Total Probability Theorem,
$$P(W)=P(A)\times P(W \mid A)+P(B)\times P(W \mid B).$$
From the given question, it is very easy to say that $P(W \mid A)$ is $2/5$. As in the Bag A, there are total $5$ balls and $2$ of them is white.
But I am unable to proof this mathematically that $P(W \mid A)$ is $2/5$.
My approach was $P(W \mid A)= P(W \cap A)/P(A).$
I think $P(W)$ and $P(A)$ are dependent events, as $P(W \mid A)$ and $P(W \mid B)$ are not same.
( I think probability of picking a white ball depends on the bag.)
So how can I prove that $P(W \mid A) =2/5$?

Firstly, for probability of drawing white given A,
don't use P(W\A), the correct symbol is $P(W|A)$
And P(W|A) is simply the ratio of white balls to total balls in $A$, so there is nothing to prove here.
So, by Total Probability Theorem,
$P(W)=P(A)*P(W|A)+P(B)*P(W|B) = \Large\frac12\frac25 + \frac12\frac37$
ADDED
Bayes' Rule would be needed if you has been asked, say, $P(A|W)$
$P(A|W) = \dfrac{P(A)*P(W|A)}{P(A)*P(W|A)+ P(B)*P(W|B)}$