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