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