Finding the coordinate of a point