A solution of two-dimensional magnetohydrodynamic flow using the finite volume method