Probabilities of solving a specific problem independently by A and B are 1/2, and 1/3 respectively. If both try to solve the problem independently, find the probability that
(i) the problem is solved,
(ii) exactly one of them solves the problem.