Hannah bought 4 candy bars, and each candy bar costs $2.
To find out how much money she spent on the candy bars, we can calculate:
\[ \text{Total cost} = \text{Number of candy bars} \times \text{Cost per candy bar} = 4 \times 2 = 8 \]
Therefore, Hannah earned $8 for mowing the lawn.