Plants use energy from sunlight to turn water and carbon dioxide into an energy-rich sugar called glucose. This process is called photosynthesis, which means “making things with light”
Nails are made of iron because, iron is strong and sturdy; although nail rust when it undergoes oxidation when expose to water but it is not explosive.
Barium and phosphorus are not suitable for nail making because of their properties.
Barium is an element which reacts with virtually all non metals, forming poisonous products which are dangerous to health and to the environment. It also reacts explosively with water.
Phosphorus is not found in its pure form in nature, it conducts electricity and it is combustible in nature.<span />
It transfers from being to being, from the sun, where it starts, to every other being after.
Hope this helped.
Answer
Just think critically about why (if you were an egg laying species), having a fetus/baby develop inside of you would be advantageous.
For one, eggs are much less protected from outside factors such as predators, temperature, etc than live birthed creatures. Live birth provides protection inside the mothers body from things such as heat, cold, moisture, predatory animals, etc. An egg laying animal must keep its eggs at a perfect temperature and check to make sure no other animal has eaten them.