Answer:

Step-by-step explanation:
The free body diagrams of each box are presented in the images attached below. Given the smoothness of the level floor, friction forces can be neglected and due to the contact (3rd Newton's Law) betweeen each other, both boxes experiment the same acceleration:
Box A


Box B


After some algebraic manipulation:

The acceleration experiment for each box is:



The contact between the two boxes is:

