If given $P(B\mid A) =4/5$, $P(B\mid A^\complement)= 2/5$ and $P(B)= 1/2$, what is the probability of $A$?
I know I need to apply Bayes theorem here to figure this out, but I'm struggling a bit to understand how.
So far I've considered this formula: $$P(B\mid A) = \dfrac{P (B \cap A) }{ P (B \cap A) + P(B^\complement \cap A)}$$
From this formula, I understand that $P(B \cap A) = P(A) \cdot P(B\mid A)$ so I plug in the given values but then only find that $P(B^\complement |A)$ is $2/25$. But this does not get me any closer to my goal, $P(A)$.
I imagine my understanding of this is quite backward. Any pointers would be helpful.
Thank you

You know that $$P(B)=P(B|A)P(A)+P(B|A^C)P(A^C)$$ and $P(A^C)=1-P(A)$. From there, it's just plugging in and solving for $P(A)$.