Tile coords

Hello, i recently finished creating a tile map, I render it using a 2D array, the problem is the way I am rendering, I never really set an X/Y position of the individual tiles, instead I’m using the tiles render method and a loop for setting the X and Y, but of course this is only the drawing positioning and not the actual coordinates of the tile. So is there anyway I can set an x and y for a tile within a 2D array? The main reason is I’m thinking of implementing path finding and cant think of any other way to do it without knowing the specific x,y of the individual tiles. Thanks for any help!