A man owns a horse, a cow and a sheep. He also owns a pasture to graze them all. If the horse and cow can eat the contents of the pasture in forty days, while the horse and sheep can do it in sixty days and the cow and the sheep in ninety days, how long should it take all of them eating together?