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