Are these moves supposed to happen smoothly over time? Or instantly, like once the player releases placement of object1, then object2 jumps to the appropriate place as a result?
I ask about "over time" as you mentioned using lerp in your original post
Either way, it leads me to think about these as percentages between their clamp values, determine the percentage that player one has selected, and then move object2 the same percentage between 1250 and 410
If you're looking for the position change to move smoothly over time, then using lerp can help:
lerp( a, b, x )
lerp( starting value, target value, percentage of the distance to move each tick )
so if you have:
Set object2.Y to lerp( object2.Y, object1.yOffset, 1 )
yOffset is the percentage between 310 and -1800 that the player has placed object1. object2.Y will then be set to the same percentage from 1250 to 410 immediately, as its travelled 100% of the way from where it is to where it should be this tick.
If instead you have:
Set object2.Y to lerp( object2.Y, object1.yOffset, 0.25 )
Then object2 will only move 25% of the way there this tick, and now that its moved, the pixel distance between the two is shorter, so the next tick that 25% will be smaller. Lerp runs the risk of never reaching its destination and only moving smaller and smaller increments, so its good practice to check for a position that's really close to the target, and if its passed that position, set it to the target. Otherwise, it'll be lerping forever but essentially invisible to the eye.
Is this close to what you're looking for?