Bankers Algorithm: The following snaphsot of a system istaken at time == 0

Please give an in-depth walkthrough, preferably drawnout to answer the following 3 questions (Answers provided aftereach):
A) Suppose P1 requests 1 additional instance ofresource type A and 2 instances of resource type C, can the requestbe immediately granted?
Answer: Yes
B) Suppose process P4 requests 3 instances ofresource type
PayPal Gateway not configured
PayPal Gateway not configured