Hopfian And Co-Hopfian Subsemigroups And Extensions