Compounds are words made by combining multiple words.
Gajaanaam + Vanam ⇒ Gajavanam
Elephant + Forest ⇒ The Forest of Elephants
any words that can be combined with ‘cha’ can be combined into a dvandva
raamah sita cha → raamasiite
raamah sita lakshmanah cha → raamasiitaalakshamanah
second word is the main idea, the first word modifies it
raamashya maata (rama’s mother) → raamamaata
raamashya putrah (rama’s son) → raamaputrah
raamashya patnii (rama’s wife) → raamapatnii