That is what the problem was suppose to say, but the problem said 36 MORE small dogs than large dogs. Your way there are only 23 more small dogs than large dogs.
DOH!
Im going to have to leave this with wife before I sleep... muahahaha...