The Griffin family and Gray family each used their sprinklers last year . The water output rate for the Griffin family's sprinkler was 30 L per hour. The water output rate for the Grays family's sprinkler was 40 L per hour. The family's used their sprinkler for a combined total of 55 hours resulting in a total water output of 1950 L. How long was each sprinkler used?