Complex sentence: Bernam River is located between the Malaysian states of Perak and Selangor, demarcating the border of the two states.
Split into simpler sentences: Bernam River is located between the Malaysian states of Perak and Selangor. In fact, the river draws the border of the two states.