The correct option is
B Mesodermal in origin
Gastrulation leads to organogenesis, or organ formation, in which the cells of the three germ layers continue the processes of pattern formation that lead to the formation of specific structures.
The ectoderm eventually forms the outer layer of the skin and gives rise to the nervous system and sense organs.
Tissues that eventually line the digestive tract and organs that develop as outgrowths of the digestive tract (including the liver, pancreas and lungs), are all of endodermal in origin.
Skeletal tissue, muscle, and the circulatory, excretory, and reproductive systems (including gonads, primary sex cells and gametes) all are derived from mesoderm.
So, the correct answer is 'Mesodermal in origin'