Using two 7805s and a regulator, it is possible to convert 12V voltage into 5V and 9V voltage.
It is very simple to regulate 12V voltage to 5V with LM7805. You can find it in the LM7805 user manual.
The use of LM7805 output voltage regulator 9V voltage, it is necessary to disconnect the LM7805 ground terminal (2 pin) from the ground wire, string into a voltage regulator at 4V, in fact, there is no 4V regulator diode series. You can choose a 3.3V voltage regulator and a common diode connected in the reverse (because the common diode forward voltage drop is about 0.7V) to get 4V voltage, and use it to increase the output voltage of the LM7805, so that you can get 9V voltage regulator.