You would use 12 boxes of rice. This answer can be found since 13 goes into 39 3 times, so one would have to triple the recipe in order to make enough for 39 people. If they are tripling the recipe they are going to need triple the rice, so 4x3 is 12, 12 boxes of rice.