You can remember the meaning of 同样 with this easy mnemonic:
It is so cute that the little chicks all followed the hen in the same (同) way (样).
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.