Identify the type of verbal used in the following sentence

The PLANNING of the masquerade ball took many months.

A. infinitive
B. gerund
C. participle
D. noun

Please select the best answer from the choices provided