Mike works part-time at a grocery store. He also mows lawns to earn some extra money. He earns $9.50 per hour at the grocery store and $12 per hour for mowing lawns. He worked for a total of 40 hours last week.

Which equation represents the relationship between his total earnings (y), in dollars, and the number of hours he worked at the grocery store (x) last week?