Two blocks of metal each of mass m and specific heat c, initially at absolute temperatures T1 and T2 respectively, are brought to the same final temperature by means of a reversible process. Derive an expression for the amount of work obtained during the process in terms of m, c, T1 and T2 .