Think outside the box
My thoughts: If there were no friction between the box and the floor, the box would slide to the back of the train. What stops it is the force of friction. Since the box does not move there must be an equal, but opposite horizontal force to the friction. What is this force called and what causes it?