Optimal Control of Linear Econometric Systems with Finite Time Horizon