Each bead lined up on the strings has a value. Each bead with the same value combines to reach a higher value. All you have to do is reach the highest value by combining the right ropes.