Two objects are in resonance, then:
both of them have the same frequency.
the vibration of both bodies are in phase.
The vibrations of a body under an external periodic force of frequency exactly equal to the natural frequency of the body, are called the resonant vibrations.
Two objects in resonance have the same frequency and the vibrations of the body are in phase.