Final answer:
The amount of work produced by the engine is 2000 J and the efficiency of the engine is 40%.
Step-by-step explanation:
a) To find the amount of work produced by the engine, we can use the First Law of Thermodynamics, which states that the change in internal energy of a system is equal to the heat added to the system minus the work done by the system. In this case, the heat added to the system is 5000 J and the heat discharged is 3000 J. Therefore, the work produced is 5000 J - 3000 J = 2000 J.
b) The efficiency of the engine can be calculated using the formula: efficiency = (work produced / heat added) x 100%. Plugging in the values, we get efficiency = (2000 J / 5000 J) x 100% = 40%.