Let the Phillips family usage be represented by letter p, and let the Richardson family usage be represented by letter r.
If they used their sprinklers for a total of 50 hours combined, then we can say,
p + r = 50
Also the total water output was 1250 litres. If the Phillips family used theirs at the rate of 15 litres per hour, and the Richardson family used theirs at the rate of 40 litres per hour, we can also express this as,
15p+ 40r = 1250
We now have a system of simultaneous equations which we shall solve as shown below;
Where r = 20, and p = 30
Then;
The Phillips' sprinkler worked for 30 hours
The Richardson's sprinkler worked for 20 hours