Answer :
Trading your food for the neighboring country's wood. You can control how much wood they cut down, slowing down the change of climate in your country, and can help them with their food shortage at the same time.
one side of the country could farm and the other keep the forests and trade with each other