With your writing coach, solve the following problem:

Jess bought x bananas, then she bought 5 tomatoes. She has 12 pieces of produce in all. How many bananas did she buy? Solve for x.