It is given that the events $A$ and $B$ are such that $P(A)=\frac{1}{4}, P\left(\frac{A}{B}\right)=\frac{1}{2}$ and $P\left(\frac{B}{A}\right)=\frac{2}{3}$. Then $P(B)$ is