We must solve this problem using a system of linear equations
We know that the Martines family has 20 liters per hour sprinklers and the Hall family has 30 liters per hour sprinklers, used together for 35 hours they consume 850 liters of water
We can do two equations, one for water expenditure as a function of time and one for time

"x" is the number of hours the sprinkler is used from the Hall family's sprinklers and "y" is the number of hours the sprinkler is used from the Martinez family's sprinkler

Now we can clear x and leave everything in terms of "y" to solve the first equation and subsequently the times of both families


Now we can solve "x"

If we replace in the equation these values for "x" and for "y" we should get 850

In conclusion, the Hall family's sprinkler: 15 hours and the Martinez family's sprinkler: 20 hours