Peter also earns a certain amount per hour. The table shows the amount of money, in dollars, he earns in a given number of hours. Write the linear equation for this situation, where y represents the money earned, in dollars, and x represents the number of hours worked.