A person was clinically diagnosed to have megaloblastic anemia. Deficiency of which of the following pair of vitamins can cause this anemia?