find the position of object and magnification.