Hari's weekly allowance varies depending on the number of chores he does. He received $20 in allowance the week he did 10 chores, and $16 in allowance the week he did 2 chores. Write an equation for his allowance in slope-intercept form.