Answer is D.
Prepositions are words that are used to connect words. In, on, at, of, up, to,among etc. are prepositions. In the sentence, the preposition "with" is used to make connection (relating them) between Macalaster Building and the Student Union. The preposition "of" indicates an amount (some) regarding the cost.