It is not clear what you mean by
how I can find both classes
For
"AbbeNumberHelium" -> {"Physics", {"Physics", "Optics"}}
Which of the following do you want?
"AbbeNumberHelium" -> {"Physics", "Optics"}
"AbbeNumberHelium" -> "Physics", "AbbeNumberHelium" -> "Optics"
"AbbeNumberHelium" -> "Physics", "AbbeNumberHelium" -> {"Physics", "Optics"}}