What is a (free) homotopy between $f$ and $g$? It is a continuous function $H:I\times X\to Y$ such that $H(0,x)=f(x)$ and $H(1,x)=g(x)$. Note: I'm using prefix notation $H(t,x)$ which is more popular as far as I'm aware. The order of $I,X$ is irrelevant.
So let $F:I\times X\to Y$ be a homotopy between $f$ and $g$. We want to show that $G(t, x)=F(1-t,x)$ is a homotopy from $g$ to $f$. So lets check properties:
- Is $G$ continuous? We can write $G$ as the following composition
$$I\times X \overset{j\times id}\longrightarrow I\times X\overset{F}\longrightarrow Y$$
where $j(t)=1-t$ is continuous, $id(x)=x$ is the identity (so continuous) and $j\times id$ is the Cartesian product of functions, i.e. $j\times id(x,y)=(j(x),id(y))$. The Cartesian product of continuous functions is always continuous. This concludes that $G$ is continuous.
- Now we have to check boundary conditions:
$$G(0,x)=F(1,x)=g(x)$$
$$G(1,x)=F(0,x)=f(x)$$
Therefore $G$ is a free homotopy from $g$ to $f$.
Additionally if $F$ is a homotopy with basepoint, i.e. $F(t,x_0)=y_0$ for a fixed $x_0, y_0$ and any $t$ then $G$ also preserves the basepoint: $G(t,x_0)=F(1-t,x_0)=y_0$.