A flow of $1 \mathrm{~kg} / \mathrm{s}$ carbon dioxide at $1600 \mathrm{~K}, 100 \mathrm{kPa}$ is mixed with a flow of $2 \mathrm{~kg} / \mathrm{s}$ water at $800 \mathrm{~K}$ $100 \mathrm{kPa},$ and after the mixing it goes through a heat exchanger, where it is cooled to $500 \mathrm{~K}$ by a $400 \mathrm{~K}$ ambient. How much heat transfer is taken
out in the heat exchanger? What is the entropy generation rate for the whole process?