Kim owes her friend $245 and plans to pay $35 per week. Write an equation of the function that shows the amount Kim owes after x weeks.