The same principle applies to understanding the distribution of particles inside a system in thermal equilibrium with its infinite heat reservoir -the combination of the system and reservoir is considered as an isolated system. Similarly, in an equilibrated system, the energy and entropy affect the behavior of particles in the system. To understand and describe the effect of energy and entropy on the distribution of particles in an equilibrium system, we used a confined cubic box model as a closed system coupled with a reservoir. As it is expected, strong particle-particle interactions result in cluster formation, and strong particle-wall interactions result in the accumulation of a significant portion of particles in the vicinity of the walls. While energy contribution to the configuration of particles is deducible, the entropy contribution can be hidden since interaction forces interfere with entropic forces. What happens when there are no attraction energies in the system, and the energy effect is restricted to the repulsion of particles at contact? Particles entropically are attracted to the walls as part of their excluded volume locate outside of the box, and as a consequence, the entropy increases. Therefore, when the volume of particles increases, the entropy contribution to the free energy becomes more effective, and entropic forces influence strongly the configuration of the particles in the system. The emergent attractive forces drive larger particles toward the walls. This effect is even more clear when particle-particle and particle-wall attractive forces are eliminated from the system. Such a system is realized for hard spheres in a box with reflective walls. In such a system, we can track the entropy effect on the system's search, through random motions, for a configuration of particles in which it gains the maximum microstates for degrees of freedom, and consequently, maximum entropy. In this regard, to elucidate the effect of entropy, we used a binary mixture of hard spheres in a box with reflective walls. The two-component system further allows us to understand the relationship between the volume of particles with configurational entropy by comparing how two types of particles with different volumes distribute in a box based on their entropy contributions to the system.