The Lexmark X242 n selection distinguishes black toner from photoconductor drums. X340H42G and X340H22G are named as photoconductor drums, so those codes identify a different supply type from the black toner cartridges.
Toner Buzz lists genuine Lexmark black toner and photoconductor drums for the X242 n. Match the toner or drum name first, then compare the full code within that supply family.