Met a lovely older gentleman this afternoon who was a writer for, amongst other shows, MacGyver.
And the answer to your question is: the writers cribbed all of MacGyver’s paper clip + chewing gum = C4 solutions from Boy Scout handbooks from around the world.
