How to find out the co-ordinate of an object on a grid?

Im doing an activty where user can move the object to any position of a 12 x 12 grid. In order to move the object, user can click on any particular coordinate, then the object will appear there. So If I want to find out the new co-ordinate of the object on a grid, what should be done?