Can someone explain how do we know the structure of these unconventional compounds

How to approach this and find it solution

How to approach this and find it solution