Okay Ed, you're not drunk but you're defnitely confused.
There's no way on earth this play is a safety. It's a touchdown. The foul by B when the ball is in B's EZ only applies when B has the ball. B doesn't have possession of the ball nor did they force a ball from the field of play through their EZ. A has the ball. For that reason alone, you can't have a safety.