You can remember the meaning of 设法 with this easy mnemonic:
I hope we can try to set up (设) a law (法) to stops people from kicking out their pets onto the streets.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.