The electronic configuration of samarium is as: Sm(Z=62):[Xe]6s24f6
Number of unpaired electron =6
The electronic configuration of chromium is as: Cr(Z=24):[Ar]3d54s1
Number of unpaired electrons =6
Hence, Sm and Cr both have same number of unpaired electrons.