Combining M- and L-edge resonant inelastic x-ray scattering for studies of 3d transition metal compounds