Legendary investors Warren Buffett, 88, and John C. "Jack" Bogle, 89, agree on the key to successful investing: Buy and hold the stock market for the long term.

"If you hold the stock market, you will grow with America," Bogle, founder of The Vanguard Group, said on CNBC's "Power Lunch."