Can you add a capx file or tell us more about your 2 objects that you're trying to "match"?
Because I can't figure out what you're actually trying to do here.
You can try using 2 variables that contain the values of the frames of both objects.
You will have variable_object1_frame and variable_object2_frame which are both indicating what frame the objects are at.
Everytime you change the frame of 1 object, you will also change the variable to it's respective frame for instance if object 1 turns into frame 3,
you will change variable_object1_frame to "3".
With this variable you will be able to set the frame of object 2 when nessecary.
I hope this helps you with your issue.