The surgeon will first have to cut through the skin through the musculature of the chest and into the chest cavity. For them to reach the heart they will have to spread the ribs, and once inside the pleural cavity they will go through the mediastinum then into the pericardium where they will remove the bullet.
Hopefully that helps!