Retrograde motion is an apparent movement of a planet in the opposite direction to its usual motion across the sky as observed from Earth. This is due to the relative motions of Earth and the other planet as they orbit the Sun.
So, it's not about which two planets have retrograde motion, but when a particular planet appears to move in retrograde.