"To play basketball" is an infinitive phrase. An infinitive phrase is generally used as a noun. Is the word "professionally" as in "To play basketball professionally..." an adjective or an adverb?
Is it an adjective because it modifies an infinitive phrase?
Or is it an adverb because it modifies the verb play?