Four-step plan (for deriving EOM)
Step 1: FBD
Draw a free-body diagram of block A. Be sure have your spring force and dashpot forces drawn correctly based on the coordinate x shown.
Step 2: Kinetics - Newton/Euler
Write down the Newton equation for the block.
Step 3: Kinematics
None needed here.
Step 4: Equation of motion