although they both felt reasonably comfortable with the basic disciplines of mathematics , neither of them felt they were up to the task set for them in the clue that had left them fretting for much of the night .