You are a chemist. Please follow the instructions to convert the structure to the corresponding name.
system
Translate the chemical IUPAC name 4-[(8aS)-2-(6-bromopyridin-2-yl)-5,5,8a-trimethyl-3,8-dihydro-1H-isoquinolin-6-yl]benzoic acid into its molecular formula.
user
C24H25BrN2O2
assistant