Merit Energy to buy Marathon’s Wyoming assets for $870 million