Complex sentence: Originally, it was formed as the Road Transport Corporation of the erstwhile state of PEPSU but when it was merged into Punjab, it became the Road Transport Corporation of whole of Punjab.
Split into simpler sentences: Originally, it was formed as the Road Transport Corporation of the erstwhile state of PEPSU. But when PEPSU was merged into Punjab, it became the Road Transport Corporation of whole of Punjab.