This one needs more detail than the question gives — the golden bananas and the medal system are separate collectibles in Donkey Kong 64, and which you are asking about changes the answer entirely.
If you can say which level or requirement you are stuck on, the specific steps become much easier to pin down.