Yes, I meant C. Too late to go and fix it now. Good catch
pulleys: idealized, massless, frictionless
rope: idealized, massless, doesn't stretch
weights: resting on ground.
As tension is applied to the rope, Weight A will be lifted first, until it is lifted to the ceiling. Then Weight B, and finally Weight A.