You can do this with a subquery in the update
:
update table2
set names = (select group_concat(t1.name order by number separator ', ')
from table1 t1
where t1.letters like concat('%', table2.letter, '%')
);