The first play, A1 came back to the floor. He was given a chance to land and then contacts B1.
The second play A1 never got a chance to get back to the floor and that is why it is a foul on B1.
Again, go back and read what a legal B1 can do with an airborne player and what they cannot. There is your answer.
Peace