what three factors affect the formation of magma
well,if u think of it,they would be time,heat,and pressure.ur welcome!
time ,heat ,pressure and maybe erosion :)