Two masses m and m’ are tied with a thread passing over a pulley. M’ is on a frictionless horizontal surface and m is hanging freely. If acceleration due to gravity is g, the acceleration of m’ in this arrangement will be
(A) g
(B) mg/(m + m’)
(C) mg/m’
(D) mg/(m-m’)