The drama club is planning a fundraiser to buy costumes and props for an upcoming play. They spend $500 to buy candy bars. They will earn $0.50 in profit for each bar they sell.

Write an equation in slope-intercept form to determine their profit (p) based on the number of candy bars sold (c) .