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