No, your answer gives only 23 more small dogs than large dogs. The break down in the article confused me, when people here wrote the equation using X for large dogs it made sense.
Like another said, using dogs in this problem messes with your mind. Solving for X to then find the total makes sense.
And giving this problem to seven years olds makes even more sense