A block of mass $m$ is placed on an another rough block of mass $M$ and both are moving horizontally with same acceleration $a$ due to a force which is applied on the lower block, then work done by lower block on the upper block in moving a distance $s$ will be
(A) Mas
(B) $(m+M) a s$
(C) $\frac{M^{2}}{m} a s$
(D) $m{\text { mas }}$