This is the 11489th most frequent Russian word.
домами
"Домами" means "by/with houses" or "houses" in the instrumental plural form in Russian.
Here, 'дома' (houses, plural of 'дом') transforms to 'домами' due to instrumental case usage, suggesting 'by' or 'with the houses' as part of the description of walking by.
Идёшь по улице и видишь разные старинные дома, украшенные резьбой.
You walk along the street and see various old houses adorned with carvings.
'Домами', in this example, conveys the action of exchanging houses using the instrumental case indicating the means or objects involved in the action.
Соседи обменивались домами на летние каникулы.
The neighbors exchanged houses for the summer holidays.
Here 'домами' is from the instrumental case, indicating possession or association with the beautiful houses belonging to the streets.