...and he was paid by who?
Well technically he is being paid by the state because B is indigent which means he is most likely receiving much less than his normal rate. All the while he might be working on a different matter making his normal asking rate.
Not everything is so black and white.