In return, carbon dioxide passes from the cells of the brain to the capillaries. The capillaries then form bigger blood vessels that get together to form veins. These veins take blood back to the heart, where it is pumped to the lung to get oxygen.