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