First you need to know what those topics are. Then if you know how to manipulate arrays the code to do this becomes pretty straight forward. Post specific question about a specific problem with relevant code and/or error messages and you will likely get all the help you need to work your way through the assignment. However, doing the assignment for you is discouraged here at Daniweb.
For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls
If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then
For Each subCtrl As Control In ctrl.Controls
If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then
If subCtrl.GetType Is ...