[SOLVED] Quick basic question about tmx format

I’m sure this is stupid but somehow the solution is evading me

but how do you get which tileset a layer uses?

I have tileset data, and layer data, but seemingly nothing to link layers to tilesets

I see, it’s because of firstgid