8a+2a

use the distributive property

8a+2a
= (8+2)a
= 10a

just as

8 books + 2 books = 10 books
$8 + $2 = $10

and so on.