New York and Suffolk County have each agreed to pay $ 3.7 million to buy 309 acres in the dwarf pine plains in Westhampton , a rare forest within the core of the state 's 100,000-acre Long Island pine barrens preserve .