You have a job that pays by the hour. On Thursday, you worked 7 hours and earned $42. On Friday, you worked 2 hours and earned $12. Let x represent the number of hours worked and let y represent the amount earned. Write an equation in slope-intercept form that models the situation.