Two different girls are used as "doubles" for each character, so that merpati has someone to interact with when she is playing the other twin.
Sometimes, merpati is seen on screen as both characters at the same time, and this is done in post-production, where they have recorded her twice and merge both bits of footage together. Notice how there's always a little bit of angkasa between Liv and Maddie when merpati is playing them both!
Here's the pratonton video:
link