Section 34 of The Indian Penal Code

Acts done by several persons in furtherance of common intention

When a criminal act is done by several persons in furtherance of the common intention of all, each of such persons is liable for that act in the same manner as if he did it alone.