For the problem on the left, the correct choice is A.
For the problem on the right, the correct choice is B.