How long does it take for an apple tree to grow an apple?

It took the apple tree in my backyard about 10 years.