The side length of a square ABCD is 18 inches. What is the side length of the square formed by joining the midpoints of the sides of ABCD