It`s a shame to let your produce go to waste so you should always have a plan which item to use first. In order to maximize the shelf life of your produce the first thing you should do is store them properly without washing everything because most of them last longer if you don’t. (Berries are an exception because they last long if you give them a vinegar bath first).
So remove any rubber bands, twist ties and store your produce into a refrigerator wrapped in plastic bag or secured into some reusable container. Don`t just throw them in directly.
The most importing thins is that you actually eat them so follow this handy illustration so you should know what to eat and when first!
Take note that your tomatoes and corn will still be edible after 4 days but they will lose most of the good stuff. Also the storage time depends of how fresh and ripe your produce is when you bought it and how cold is your refrigerator. In short follow this chart but also follow common sense.