Here is A and B below as well as example for reference below the two problems :

Posted Date: