The oxygenated blood goes to the superior vena cava to right atrium to tricuspid valve to right ventricle to pulmonary valve then comes out to the pulmonary artery
the non oxygenated blood goes to pulmonary vein to mitral valve to left ventricle to aortic valve to aorta

function heart pumps blood to go to other parts of the body or the heart helps blood to the other parts of the body