Minecraft wiki entry for Target_selectors, associated text: Examples in Bedrock Edition:
@a[lm=10,l=10] — Select all players who have exactly ten levels.
@a[lm=8,l=16] — Select all players who have between eight and 16 levels (inclusive).