I think what @Rainney Uchiha is trying to say, is that they want to play mods written against two different versions of Java Edition in the same installation.
If that is what you want to do, then I have to disappoint you. Due to technical reasons a specific version of a mod is only ever written against a specific version of a game. E.g. you cannot install a 1.8 mod in a 1.12 game.
However, the creator of the older mod might have updated theirs for the latest version of the game, or the newer mod might have already been available for an earlier version of the game. You should search through all versions of the mods that you want to play together to figure out if they overlap.