Something I learned a long time ago the hard way:
the AI doesn't like trading techs that allow the construction of wonders, but if a wonder requires two techs, and the AI only has one, it'll do the trade. Thus if the AI has Sailing but not Masonry, it'll happily trade Sailing - but if you trade it Masonry beforehand, it will then refuse to trade Sailing because it can now built the Great Lighthouse.