solve testQuestCost