The Long family and the Harris family each used their sprinklers last summer. The water output rate for the Long family's sprinkler was 25L per hour. The water output rate for the Harris family's sprinkler was 35L per hour. The families used their sprinklers for a combined total of 55 hours, resulting in a total water output of 1625L. How long was each sprinkler used?