Classify the rocks on the basis of their origin.
On the basis of their origin, rocks are of three types: