sounds like a high school problem. So I'll basically help you on what you would need to do.

You would need a button that has the user clicks to update the new text box. Then you would need an integer and a string that holds the template string. Then you would combine the string and the integer into one string and then display that into the last text box when the user clicks on the button. EASY!