John has $40 to spend at the yard sale. He buys six books for two dollars each. He would like to spend the rest of his money on model cars for his collection. If the cars cost seven dollars each how many cars can he buy?