THE DECISION
Play is restarted with a dropped ball for Team A (not for Team B that last touched the ball) because it was clear to the referee that Team A would have gained possession if play had continued. The ball is dropped at its position when play was stopped.
Read official Law 8 ↗