D except for the transition metals copper iron tantalum etc they have different oxidation states so arent fixed shells but all main group elements are grouped by the valence electrons sodium potassium lithium alkali column 1 valence electron highly reactive.
When heat is added to a substance, the molecules and atoms vibrate faster. Since the speed for Sample B is higher this means it has a higher temperature as well.