The Sanders family and the Wright family each used their sprinklers last summer. The Sanders family's sprinkler was used for 20 hours. The Wright family's sprinkler was used for 35 hours. There was a combined total output of 1025L of water. What was the water output rate for each sprinkler if the sum of the two rates was 40L per hour?