A roadside vegetable stand sells pumpkins for $5 each and tomatoes for $3 each. The total sales on a certain day was $98. If they sold 10 pumpkins, write and solve a linear equation to find the number of tomatoes sold.