So the last number is the crank arm length. If you dont have a preference I’d just check the current cranks on the bike they’ll say what length they are somewhere.
The first number is the front chainring size (number of teeth), depends how fit you are and what kind of terrain you’ll be riding.
Same for the middle numbers 11 is the number of teeth on the smallest cog of the cassette and 40 or 42 is the biggest cog. Bigger cog equals lower gear.
Essentially these combinations allow you to run the same top and bottom ends of a triple chainset. There are gear ratio calculators on the internet if you want to get super nerdy.
Sorry if I’m teaching Granny to suck eggs, just trying to be thorough.