how to detect if a certain item is dropped on top of a certain block

I've seen it before on datapacks I just want to know how to do it
Continue to help post