Two Problems in Control Theory and Applications to Economics