How to pump and feed?

How and when do you pump after feeding baby? I’m wanting to do both but I’m not sure how to get started or when is the best time to pump when also breastfeeding