Answer:
It will go 10N in the direction it's hit.
Step-by-step explanation:
If the dog is going 20N to the right then is hit 30N to the left, the 20N of force will cancel each other out. The dog will start traveling to the left using the leftover 10N. Sorry I'm bad at explaining.