Three three-inch squares are placed with their bases on a line. The center square is lifted out and rotated , as shown. Then it is centered and lowered into its original location until it touches both of the adjoining squares. How many inches is the center of the rotated square from the line on which the bases of the original squares were placed?