C is not accelerating. The forces shown are balanced.
Looking at Block-D, the 25N downward force cancels 25 of the 40N upward force. But that still leaves another 15N of upward force. So there's a net force of 15N up, and D is accelerating up. (2nd choice)