Solve the all parts of following question:
Question: Two boxes A and B are connected by a lightweight cord (disregard the mass of the cord). Box A is to the right of Box B. The mass of Box A is 10.0 kg. The mass of Box B is 12.0 kg. A person pulls on Box A with a force of 40 N.
Part A: What is the acceleration of each box?
Part B: What is the tension in the cord that connects the two boxes?
Show your work to receive full credit for this question.