Infernape LvX can use Infernape Lv40 attacks, but not monferno or chimchar.
A pokemon that is copying infernape LvX can copy infernape Lv40's attacks too.
Since Infernape LvX and Infernape Lv40 are considered the same pokemon.
Infernape Lv. X can use attacks from previous levels, in this case from Infernape Lv. 40, and if a pokemon that copy attacks, copy from Lv X and Lv 40. both same pokemon.