Two masses A and B, each of mass M are fixed together by a massless spring. A force acts on the mass B as shown in figure. If the mass A starts moving away from mass B with acceleration '', then the acceleration of mass B will be :

From the JEE Main 2021 · 26 Feb · Shift 2 paper. Try it, check your answer, then read the worked solution below.
Two masses A and B, each of mass M are fixed together by a massless spring. A force acts on the mass B as shown in figure. If the mass A starts moving away from mass B with acceleration '', then the acceleration of mass B will be :

Try it yourself first, then check your working against this.
Worked solution
Spring force. A accelerates at only because of the spring, so the spring force is ; on B it acts towards A, opposite to F.
Mass B. , so .
(D)
Concepts used: spring-connected blocks
Every past question tagged to the same part of the syllabus, with solutions.
Past questions on the same topic (Newton's laws), each with a worked solution.
Timed, in the real format, and marked the moment you submit.