Are you asking about independent and dependent variables?
Because if they were in the inside, then they would not be able to sexually reproduct and could not have offspring.
They are both created by waves of different forms of energy... sound is the oscillation of other substances, called a medium, while the electromagnetic waves are oscillating through electromagnetic energy.
They are formed from erosion and weathering.