Cord 3 is accelerating 18kg of mass.
Work Step by Step
Cord 3 is getting pulled by force F and the 2kg block. It is pulling the 5kg, 3kg, and 10 kg blocks. The total mass of these three blocks is the total mass that the cord accelerates. 5+3+10=18.