Note! Tthis exercise is very dificult. Do not be frustrated if you are not able to solve it. It seems that there is no rule that tells us when to use zum + infinitivo (as noun)
and zu + infinitivo. Just do not mind, it is seldom used in spoken language.