$(X,\mathcal{T}),(Y,\mathcal{O})$ are homotopy equivalent, denote the homotopy equivalent functions by $f$ and $g$ ($f\circ g\simeq Id_Y, g\circ f\simeq Id_X$). from $f,g$ continuity , taking a connected component $[x]$ (A maximal connected subset of $X$) we get $f([x])$ is connected in $Y$, $g(f([x]))$ is connected in $X$.
I was trying to show that $f([x])$ must be c connected component in Y, an another approach was assuming $[x_1],[x_2]$ are mapped by $f$ to $[y]$, means $f([x_1]\uplus [x_2])\subset[y]$ and then I tried to work with the Homotopy $F:X\times I\rightarrow X$ between $f\circ g$ to $Id_X$ , yet I didn't succeed in getting a contradiction.