The Sanchez family and the Price family each used their sprinklers last summer. The water output rate for the Sanchez family's sprinkler was 30 L per hour. The water output rate for the Price family's sprinkler was 15 L per hour. The families used their sprinklers for a combined total of 60 hours, resulting in a total water output of 1275 L. How long was each sprinkler used?