The level lines $\gamma_c:=f^{-1}(c)$ of the function
$$f(x,y):=(x-\bar a)(y-\bar b)$$
are hyperbolas centered at $(\bar a,\bar b)$, and having asymptotes $x=\bar a$, resp., $y=\bar b$ (see the following figure). We are looking for the largest $c$ such that $\gamma_c$ meets the red line $\ell: \>x+y=1$. This is the case when $\gamma_c$ just touches the line $\ell$, because a $\gamma_c$ intersecting $\ell$ in two points leaves room for improvement. Due to symmetry this will take place at the point $(x_*,y_*)$ where the $45^\circ$ line $$\sigma:\quad t\mapsto (x,y):=(\bar a+t,\bar b+t)$$ through $(\bar a,\bar b)$ intersects $\ell$. One obtains the value $t_*={1\over2}(1-\bar a-\bar b)$. This leads to
$$x_*=\bar a+t_*={1\over2}(1+\bar a-\bar b),\quad y_*=\bar b+t_*={1\over2}(1-\bar a+\bar b)\ ,$$
and in particular furnishes the maximal value
$$f(x_*,y_*)=t_*^2={1\over4}(1-\bar a-\bar b)^2\ .$$
