Sam bought chips and soda for a picnic. The soda was $2.25 a bottle and the bags of chips were $1.95 a bag. Let c represent the number of bags of chips and a represent the number of bottles of soda and the total Sam spent was $31.95, write an equation to model the relationship.