Aniq Ur Rahman the same work is done.
In case of A, PxV=W
In case of B, P/2x2V=W
I never said that lesser work is done in B. it's your misinterpretation of my answer.
Akash Anand @Aniq..check it again..The diagram that you have shown, suggests that for A work is done on this system by surrounding (as the volume decreases), but its not like that.