Final Jeopardy

The lengths in feet of three pieces of timber are 48, 72, and 40. The sawmill operator needs to cut the timber into logs of equal length with no waste. How many feet long is the greatest possible length that can be cut?