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:
Multiply both sides of the first equation by 15:
Then, the system is equivalent to:
Substract the first equation of the system from the second one:
Plug in R=30 into the first equation to find N:
Therefore, the Nelson family's sprinkler was used for 20 hours and the Robert family's sprinkler was used for 30 hours.