Since $A$ is positive semi-definite, $A^{1/2}$ exists and is Hermitian too. Since $tr(AB)=tr(BA)$
$$
tr(AB)=tr(A^{1/2}A^{1/2}B)=tr(A^{1/2}BA^{1/2})
$$
Since
$$
(A^{1/2}BA^{1/2})^*=(A^{1/2})^*B^*(A^{1/2})^*=A^{1/2}BA^{1/2}
$$
it is Hermitian and thus all its eigenvalues are real. So $tr(A^{1/2}BA^{1/2})$ is real.
Since $A$ is positive semi-definite, $A^{1/2}$ exists and is Hermitian too. Since $tr(AB)=tr(BA)$ $$ tr(AB)=tr(A^{1/2}A^{1/2}B)=tr(A^{1/2}BA^{1/2}) $$ Since $$ (A^{1/2}BA^{1/2})^*=(A^{1/2})^*B^*(A^{1/2})^*=A^{1/2}BA^{1/2} $$ it is Hermitian and thus all its eigenvalues are real. So $tr(A^{1/2}BA^{1/2})$ is real.