Illinois teachers cashed in on a large Palm Beach County real estate investment, making a $44.3 million return on a 336-unit apartment complex on nearly 28 acres in Boca Raton.

TR San Marco Corp., a nonprofit investment company that acquires and manages real estate for the Illinois’ teachers retirement system, sold the complex for $80.3 million, according to a deed recorded Thursday in Palm Beach County.