Frederick works in a grocery store and also mows lawns . He earns $ 10 per hour at the grocery store and $ 8.50 per hour mowing lawns . He worked a total of 35 hours last week , of which he spent x hours mowing lawns . Which is the simplified equation that represents the relationship between his earnings , y , in dollars and the number hours he spent working last week?