This question has options. How would someone go about accomplishing this goal?
How to prime a wooden object before painting?

(A). Before you get ready to paint, sand the wooden surface so it is smooth and paint a layer of sealant on the wood, wait for it to dry then paint; (B). Before you get ready to paint, paint a layer of sealant on the wood and then paint, sand the wooden surface after painting it;
(A).