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