....Your problem makes no sense

You move two images across until they overlap, then you need to find the top, left value of the top image.

Well you where moving the image in the first place so the current position should reflect the top and left values.