When two or more objects move together, then it usually simplies the problem solving to treat them as a single "compound body." The principles that apply in this case are
Mass of a compound body
Kinematics of compound same as part
Force on a compound body