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