Link triplets of identical jewels and upload the required number of points with a limited number of moves.