Samuel bought 148 pearl-colored beads and 36 strings from a shop. He wants to make a certain number of necklaces using a combination of the beads and the strings, with no pieces left over. What is the greatest number of necklaces he can make?