A pencil costs $3.50 and a pen costs $6.70. Jessica bought m pens. She also bought 4 fewer pencils than pens. Write an algebraic expression for the total amount she spent and solve the expression.