these words only made more pressing to sam 's mind a problem that had been troubling him from the moment when he understood that his master was going to adopt gollum as a guide : the problem of food .