Connect 4 panels in series to get 72 V, and connect 3 such series strings in parallel to get 9 A. In total 12 panels are needed.
Getting 72 V: in series, voltages add and current stays the same. Number of panels in series \(= \dfrac{72\ \mathrm{V}}{18\ \mathrm{V}} = 4\). One string gives 72 V and 3 A.
Getting 9 A: in parallel, currents add and voltage stays the same. Number of strings in parallel \(= \dfrac{9\ \mathrm{A}}{3\ \mathrm{A}} = 3\). Three strings in parallel give 72 V and 9 A.
Total panels \(= 4\times3 = 12\). Power of the array \(= 72\ \mathrm{V}\times9\ \mathrm{A} = 648\ \mathrm{W}\) (check: \(12\times18\times3 = 648\) W).
Diagram: draw three horizontal rows, each having 4 battery symbols (panels) joined positive to negative (series). Join the left ends of all three rows together and the right ends of all three rows together (parallel), and take the output terminals from these two common points, marked 72 V, 9 A.