A newly built, 38-unit apartment building in Perth Amboy has sold for more than $5.6 million, in one of several recent transactions announced Wednesday by Gebroe-Hammer Associates.