This is the 2956th most frequent Russian word.
гостям
"Гостям" means "to the guests" or "for the guests" in English.
The word 'гостям' here is dative plural, expressing the indirect object 'to the guests', to whom the action is directed.
Мы показали гостям город.
We showed the guests the city.
'Гостям' in this context also uses the dative plural to denote the recipients of the story.
Она рассказала гостям интересную историю.
She told the guests an interesting story.
In this instance, 'гостям' is dative plural as well, indicating the group being addressed.