At the craft store, Bill bought a bag of orange and purple marbles. The bag contained 40 marbles, and 90% of them were orange. How many orange marbles did Bill receive?