synchronization of buckets filling and emptying

The following is a math problem that I encountered. Situation : There are four buckets being concurrently filled with water. When a bucket is full it tips over and empties. Parameters : Each bucket has a different fill rate: 10, 12, 14, 16 seconds. Emptying each bucket takes 1 second. Question : How frequently do all four buckets empty at the same time? Answer: Imagine all the buckets emptying at…