The probabilities of solving a particular problem by $A$ and $B$ independently are respectively $\tfrac{1}{2}$ and $\tfrac{1}{3}$. If both try to solve the problem independently, find the probability that (i) the problem is solved, (ii) only one of them solves the problem.