Integrability of coupled upper-hybrid and magnetoacoustic modes in a magnetized plasma