
Christina W. answered 07/10/19
Your math and science help is here
Well lava is magma that has erupted to the surface of the Earth. Magma is melted rock, minerals, and gasses formed generally 100 m below the Earth's surface. The magma chamber you read about typically includes layers of the crust, mantle, and core, which are all solid but portions can reach high enough temperatures to melt the rocks and minerals there. It is the outer core that is liquid, and but it is primarily iron & nickel and is not the elements found in lava.
Scientist do not know with 100% of certainty where the heat within Earth comes from, but studies have shown that half of the heat comes from decay of radioactive isotopes, the rest of the heat at this time is unaccounted for. Could it be friction from the movement, possibly, but scientist have not relayed that as a theory.
I hope this helps.