Two grain-collecting machines can collect all the grain from a field 9 days faster than if the first one was doing it alone and 4 days faster than if the second one was working alone. How long does it take each grain-collecting machine to collect all the grain by itself?