2 rainstorms occurred in one week in a certain area. In the first storm, 15ml of rain fell per hour, and the second storm, 20ml of rain fell per hour.

rain lasted for a total of 40 hours, resulting in a total rainfall of 675ml. how long was each storm

first storm lasted how many hours?=
second storm lasted how many hours?=

To solve this problem, we can set up a system of equations based on the information provided. Let's denote the duration of the first storm as x hours and the duration of the second storm as y hours.

Based on the given information, we can write the following equations:

Equation 1: 15x = total amount of rainfall in the first storm
Equation 2: 20y = total amount of rainfall in the second storm
Equation 3: x + y = total duration of rainfall (40 hours)

From Equation 1, we have 15x = 675ml, as the total rainfall during the first storm was 675ml. Solving this equation, we find that x = 675ml / 15ml/hour = 45 hours.

From Equation 2, we have 20y = 675ml, as the total rainfall during the second storm was 675ml. Solving this equation, we find that y = 675ml / 20ml/hour = 33.75 hours.

However, since time is usually measured in whole numbers, we need to round our answer for the second storm to the nearest whole number. Therefore, the second storm lasted approximately 34 hours.

So, to summarize:
- The first storm lasted for 45 hours.
- The second storm lasted for approximately 34 hours.