The formula relates the area (A) of a square and its diagonal length (d). What is the area of a square if its diagonal has a length of 18 inches?