The given situation can be illustrated as follow:
The blue lines represent the mirrors.
Based on the given information you have:
AB = 9 + AC
BC = AC - 9
By using the Pythagorean theorem you can write:
Replace the given expressions for AB and BC into the previous equation and solve for AC, as follow:
Where we have expanaded (9+AC)^2 and (AC-9)^2. By dividing by AC both sides:
Hence, the distance between mirrors A and C is 36