Orbital migration and Resonance Offset of the Kepler-25 and K2-24 systems