City scraps away win 44-40