If you follow the diagonal method of allocating electrons to subshells you get the correct pattern for Silver in its lowest energy state. Note that silver will go to d10 s1 rather than d9s2 since this is more stable; this is why silver is commonly shown with a +1 charge.