To solve this problem, we must simply use the concept of Total Energy transferred both in terms of work and heat. This is basically conjugated in the first law of thermodynamics.
If we take the heat absorbed as positive and the expelled as negative we have that the total work done in the heat engine is
[tex]W_1 = 2500-1000[/tex]
[tex]W_1 = 1500J[/tex]
For the case of the engine pumps the Energy absorbed is
[tex]W_2 = 1500J[/tex]
In this way the ratio between the two would be
[tex]Ratio = \frac{W_1}{W_2} = \frac{1500}{1500} = 1[/tex]
So it is reversible, because the state of efficiency of the body is totally efficient.