Only through chain breeding onto a male Pokémon that can also learn both. For example, Pokémon A learns Move A through level-up, Pokémon B learns Move A as an egg move and Move B through level-up, and Pokémon C, your target, learns both moves as egg moves. Pokémon that learn a move by TM will also inherit the move if the male parent knows it.
There is unfortunately no easier way to do this, since the female Pokémon can’t pass down egg moves in Gen 2, so you have to load all of them onto the male.