first of all he must take the chicken alone and leave the dog with the bag of rice as dogs don't eat rice
then leave the chicken there and come and get the dog, then leave the dog and take the chicken back
then he can leave the chicken and take the rice
and keep it with the dog, and come to get the chicken
i hope i am right
well, i will try to find a riddle soooon