To solve this problem, apply the concepts related to the calculation of the work performed according to the temperature change (in an ideal Carnot cycle), for which you have to:
[tex]W = \int\limit_{T_c}^{T_H} C (1-\frac{T_H}{T})[/tex]
Where,
C = Heat capacity of the Brick
[tex]T_C[/tex]= Cold Temperature
[tex]T_H[/tex] = Hot Temperature
Integrating,
[tex]W = C (T_H-T_C)- T_H C ln (\frac{T_H}{T_C})[/tex]
Our values are given as
[tex]T_H= 300K[/tex]
[tex]T_C = 150K[/tex]
Replacing,
[tex]W = (1) (300-150)-300(1)ln(2)[/tex]
[tex]W = 150-300ln2[/tex]
[tex]W = -57.94kJ \approx 58kJ[/tex]
Therefore the work perfomed by this ideal carnot engine is 58kJ