If anyone helps someone steal, he will be punished with the same penalties as if he had done the act himself(( Section 109, Indian Penal Code, 1860.)).
However, if one is helping someone steal, and another act is done, he will be punished for the act done, as if he had the act himself(( Section 111, Indian Penal Code, 1860.)). For example, Ram decided to steal from Sita’s house, and Sham agreed to help him, and during the theft, Sita was murdered, Sham will be punished with penalty for murder as well, and theft(( Section 112, Indian Penal Code, 1860.)), if theft was also committed.