A steam turbine is operated with an intake temperature of $400^{\circ} \mathrm{C}$, and an exhaust temperature of $150^{\circ} \mathrm{C}$. What is the maximum amount of work the turbine can do for a given heat input $Q$ ? Under what conditions is the maximum achieved?