There were many people in the room.

Literal

Room [in-には], many people [subject-が] existed.

たくさんの modifies 人 as a pre-nominal quantity expression. Polite past tense.