Both fruits and vegetables can decompose in 30 days, depending on various factors such as temperature, moisture, and exposure to air. Some fruits and vegetables may decompose faster than others due to their composition and water content. It is important to properly store and dispose of fruits and vegetables to prevent them from decomposing and creating waste.