Question: what is the relationship between time of cooling for magma and grain size?
Answer: If magma cools quickly, for example when basalt lava erupts from a volcano, then many crystals form very quickly, and the resulting rock is fine-grained, with crystals usually less than 1mm in size. If magma is trapped underground in an igneous intrusion, it cools slowly because it is insulated by the surrounding rock.