What processes create all the elements? Why are some elements more common than others? How does fusion happen inside and outside of a star?

What processes create all the elements? Why are some elements more common than others? How does fusion happen inside and outside of a star?