Ryan earns $5 for each small dog he walks and $8 for each large dog he walks. Today he walked 8 dogs and made a total of $49. How
many small dogs did Ryan walk?