how can i copy a list of files with different names into others directory have the same name

dear all.

how can i copy a list of files with different names into others directory have the same name
like i have 3 files
10_10
10_10_11
10_10_11_12
and i have 3 directories
10_10
10_10_11
10_10_11_12

how can i make a loop to cp this files into the directory have the same name like how to put 10_10 into directory 10_10
and 10_10_11 into 10_10_11 i want to make a loop to run this how to make it plz answer me as soon as possible i need ur help

i am using solaris
and i try that command

cp `ls | grep -n "10_10"| cut -f3-4 -d "_"` ./test2