Аннотация:We present a simple solution of the consumption-investment problem pair trading on a finite time horizon. The proof is based on the remark that the HJB equation can be reduced to a linear parabolic equation solvable explicitly. As a further development we obtain also a solution of the problem for the infinite time horizon.