Assertion (A) : The steam engine was invented by James Watt.
Reason (R) : There was a problem of taking out water from flooded mines.

Answer: A. Both A and R are true and R is the correct explanation of A.

The problem of pumping out water from the flooded mines provided the need of a self working engine,
which led James Watt to invent the same.