8h would mean $8 per hour of yard work. H represents the number of hours and since she got $40 from doing yard work this week h would be 40 divided by 8. So h is equal to 5 hours.
It’s shown as 8h because we aren’t told how many hours she worked that week. If it was shown it would be 8 x 5.