Answer:
I'm pretty sure you just take the words in the brackets and put them in the blank spots
Explanation:
Since an infinitive phrase is a phrase that focuses on the object of the verb and an infinitive verb is an -ing verb, your phrase is "taking advanced math".