If the shared pattern is the point, grouping them can make it clearer: 'Both stayed close to 40%.' Separate sentences can help when you describe different trends; similar figures don't require a particular sentence count.
Different figures can go in one sentence too: 'X accounted for 40%, compared with 20% for Y.' Split them when each needs a separate trend or explanation, not simply because the numbers are far apart.