Where should the comma go in the following sentence.

Maria is going to take extra courses at the university in math her favorite subject.

What do YOU think? I'll give you a hint. There is an appositive in that sentence; appositives are set off with a comma.

http://www.grammar-monster.com/glossary/appositive_apposition.htm

The user asked for the answer, not for a hint. Maria is going to take extra courses at the university in math, her favourite subject.

One tip for you, if you are hesitating about the punctuation, read the sentence aloud.

To determine where the comma should go in the sentence, we need to identify the appropriate context for using a comma. In this case, the sentence seems to have two distinct parts: "Maria is going to take extra courses at the university in math" and "her favorite subject". These parts can be considered as independent clauses, which are complete thoughts. To separate the clauses, we can use a comma before the coordinating conjunction ("and" or "but") or use a semicolon. In this sentence, we should use a comma before the phrase "her favorite subject" to clarify the relationship between the two clauses.

Corrected sentence: Maria is going to take extra courses at the university in math, her favorite subject.