If both K and L shells are filled, the total number of electrons contained in them will be:
10
Since both K and L shells of an atom can contain maximum number of electrons as 2 and 8 respectively, the total number of electrons contained in them is 2 + 8 = 10.