Answer
$P(Y_{2}|X)=\frac{.5\times .1}{.4\times .8+.5\times .1 + .6\times .1}\approx .12$
Work Step by Step
Accordint to Bayes' theorem:
$P(A_{1}|B)=\frac{P(B|A_{1})P(A_{1})}{P(B|A_{1})P(A_{1})+P(B|A_{2})P(A_{2})+P(B|A_{3})P(A_{3})}$
Where $A_{1}, A_{2}, A_{3}$ form a parition of $S$.
Meaning that $P(A_{1})+P(A_{2})+P(A_{3})=1$
Here, we have
$P(X|Y_{1})= .4$
$P(X|Y_{2})= .5$
$P(X|Y_{3})= .6$
$P(Y_{1})= .8$
$P(Y_{2})= .1$
Be aware, that X and Y equal to B and A in the definition of the theorem, respectively.
We know, that $P(Y_{3})=1-P(Y_{1})-P(Y_{2})= 1-.8-.1=.1$
We can substitute into the definition:
$P(Y_{2}|X)=\frac{.5\times .1}{.4\times .8+.5\times .1 + .6\times .1}\approx .12$