Logic of Free Trade Agreements