Sorry for the delay in reply.
The causes of Vitamin D Deficiency include
Inadequate consumption of food containing Vitamin D.
Limited sun exposure
Poor absorbtion from GI tract.
Usually in practice we see many patients with decreased levels of vitamin D.
So this is a common condition.After starting the treatment the levels are normal in many patients.
Life style is the cause of low Vitamin D levels.
The vitamin B 12 deficiency may also be related to diet.
Poor intestinal absorption.
Common in people on strict vegetarian diet.
The levels you have are commonly found in many patients in practice and are cured after the supplementation and not a serious emergency.
So kindly relax and don't worry much and follow your doctor prescriptions.
I hope this helps