How did you get on?
Did you spot that A is a sailing vessel and B is a vessel restricted in its ability to manoeuvre?
Great.
This could be viewed as a Power v Sail scenario …. It’s not, it is Sail v RAM.
Rule 18 - responsibilities between vessels is the guidance here, the sailing vessel should keep out of the way of B.
If you managed to solve that one - well done.
Have a great day.