What is 'How old was he when he wrote his first composition' in German?

How old was he when he wrote his first composition = Wie alt war er als er seine erste Komposition schrieb