A theater group is having a carwash fundraiser.The group can only spend $34 on soap, which is enough to wash 40 cars. Each car is charged $5. If c represents the total number of cars washed and p represents the profit, which equation shows the relationship between c and p?