Iraq: Bring our troops home, leave behind a government that can defend itself even if the situation when we leave remains messy, maintain regional capacity to provide military support if the Iraqi government needs it.
Afghanistan: Reduce poppy production and the narco-economy that fuels terrorism, capture bin Laden, strengthen central government, keep Taliban contained.
Achieving our aims for Iraq will help free up resources to reverse the set-backs Bush is responsible for in Afghanistan.