How the twelve tribes were formed?

Each tribe is the descendants of one of the twelve sons of Jacob.