A farmer is planting two types of seeds in his field. He plans to plant a total of 100 seeds. If he uses 40 seeds for type A and the rest for type B, how many seeds will he use for type B?