Solution of Linear Systems as Control Problems