Analytical and numerical analysis of magnetohydrodynamic fluid flow problems with heat and mass transfer