50 is 32 in hex. Open the windows calculator that should be build into your PC, then click View>Programmer, you will see two options on the left: Dec and Hex. Click dec, then type in the level you want your Pokémon to be. Then once its typed in, click on hex and it'll show the hex version of that number. For example, say I click on dec, then type in the number 100, then I click on hex, it will show the hex version of 100, which in this case is 64. So if I wanted the pokemon in the battle to be level 100, I'd type in 0x64.