Tarnisa bought 4 sandwiches for her and her three friends. She had a coupon for $2 off each sandwich and spent a total of $18. If s represents the cost of each sandwich, how much did Tarnisa spend on each sandwich?