we put 2 mirrors perpendicular to each other and then an object in front. the result is 3 images of that object. how does the middle image occur?

The middle image appears directly behind the intersection of the two mirrors, and is a double-reflection off of two mirrors. There is no right-left reversal in that image, becasue of the even number of reflections.