At the dog park on Monday, the ratio of small dogs to all dogs was three to seven. A total of 42 dogs were at the park. How many small dogs were there?