B is just sharing offcie with A. If B agrees that A can collect momey from the goverment, then it is fine for A to do that.