The Kelly family and the Garcia family each used their sprinklers last summer. The water output rate for the Kelly family's sprinkler was 35L per hour. The water output rate for the Garcia family's sprinkler was 20L per hour. The families used their sprinklers for a combined total of 45 hours, resulting in a total water output of 1350L. How long was each sprinkler used?