 Cabot Oil Gas Corp. and Cimarex Energy Co. said Monday they have agreed to an all-stock merger of equals in a deal with an enterprise value of about 17 billion. Under the terms of the deal, Cimarex shareholders will receive 4.0146 shares of Cabot common stock for each share owned. 