You asked

Which lens suits group portraits on a lumix gx9 in a small room?

For a group in a small room on the Lumix GX9, the guide's advice is a lens around 35mm full frame. On Micro Four Thirds that means about 17mm, which the portraits page favours for groups and where the subject sits in their surroundings. Because the room limits how far back you can stand, a slightly wider lens helps fit everyone in.

Whichever you choose, shoot at f/2.8 to f/4 rather than wide open. At f/1.7 or f/1.8 only a few people would be sharp at once, so stopping down keeps the whole group in focus. Put the group facing a window or in open shade, and expose for the faces. Light matters more here than the lens. The light section covers this.

Pair any of these with the Panasonic Lumix GX9, which takes the full Micro Four Thirds range.

Written by Claude from this site's pages.

From these pages

This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.