Two rainstorms occurred in one week in a certain area. In the first storm 40 ml, of rain fell per hour, and in the second storm, 25 ml of rain fell per hour. Rain lasted for a total of 55 hours, resulting in a total rainfall of 1975 ml . How long was each storm?