Ross charged $6 to wash a dog and then $3 each day to walk the dog. He earned $21. How many days did he walk?