This is because person B is the shareholder and therefore can sue for breach of duty
The Companies can also both sue person B as well
Although ordinarily it would be the shareholder and not the company named itself who A was working for that could be sued.
So yes, person B could sue
Can I clarify anything for you about this today please?