The perez family and the pham family each used their sprinklers last summer. the water output rate for the perez family's sprinkler was 40l per hour. the water output rate for the pham family's sprinkler was 25l per hour. the families used their sprinklers for a combined total of 45 hours, resulting in a total water output of 1350l. how long was each sprinkler used?