It seems that the answer to the question posed is obvious, but there are some subtleties that are worth mentioning.
To grow an apple tree at home, you don't have to go to the store for seeds at all. Buy apples and eat them, and do not throw out the bones, they will be the material for sowing.
For germination, choose seeds that are dark brown in color, they are the ones that are ripe.
After the seeds are collected, thoroughly rinsed from the remainder of the apple pulp, you can start preparing for their germination. First, soak them for a couple of days (just put them in a saucer of clean water or wrap them in damp gauze or cotton wool). Make sure that the water is clean, the seeds do not dry out.
Experienced gardeners advise to harden the seeds before planting. To do this, put the seeds in the same cotton wool (gauze) or wet sand in the refrigerator for about two months. Thus, you imitate the natural course of things, because in nature, seeds fall into the soil at the end of summer or early autumn, that is, before they sprout, they spend the whole winter in the ground. After the seeds have hatched, they should be planted in a small pot with regular soil for flowers (do not forget to fill in the drainage!) And put on the windowsill. After the pot becomes cramped for the plants, transplant them outdoors.
remember that in order for the apple tree to produce tasty fruits, it will most likely need to be grafted.
By the way, in order to grow an apple tree from a seed, it is not necessary to do exactly as described above. If you have collected seeds from a couple of dozen apples, just plant them in the open ground in the fall. It is likely that in the spring you will see at least one or two young apple trees.