Let N be the time that the Nelson family used their sprinkler, and R be the time that the Roberts family used it, both measured in hours.
The total amount of time that sprinkers were used is N+R, which is equal to 50 hours according to the text.
Since the rate of the Nelson family's sprinkler is 15 liters per hour, then they used a total of 15N liters. From a similar reasoning, the total amount of water used by the Roberts family is 24R. The total water output is then 15N+24R, which is equal to 900.
Then, we have a 2x2 system of equations:
[tex]\begin{gathered} N+R=50 \\ 15N+20R=900 \end{gathered}[/tex]Multiply both sides of the first equation by 15:
[tex]\begin{gathered} N+R=50 \\ \Rightarrow15(N+R)=15(50) \\ \Rightarrow15N+15R=750 \end{gathered}[/tex]Then, the system is equivalent to:
[tex]\begin{gathered} 15N+15R=750 \\ 15N+20R=900 \end{gathered}[/tex]Substract the first equation of the system from the second one:
[tex]\begin{gathered} (15N+20R)-(15N+15R)=900-750 \\ \Rightarrow15N+20R-15N-15R=150 \\ \Rightarrow5R=150 \\ \Rightarrow R=\frac{150}{5} \\ \Rightarrow R=30 \end{gathered}[/tex]Plug in R=30 into the first equation to find N:
[tex]\begin{gathered} N+R=50 \\ \Rightarrow N+30=50 \\ \Rightarrow N=50-30 \\ \Rightarrow N=20 \end{gathered}[/tex]Therefore, the Nelson family's sprinkler was used for 20 hours and the Robert family's sprinkler was used for 30 hours.