Both are initially at rest. Friction exists between the blocks but there is no friction between B and floor. An impulse gives block A a velocity