You can implement the following solution
1. Populate both Subject and Topics tables
2. Add both tables to a DataSet
3. Add relationship between Subject and Topics (See the below link)
4. Populate Subject in one Combo
5. Populate Topics in another combo. Now when user select a subject, the topics combo will get filtered automatically.
The following link will tell you how to add relationships