The Impact of Formal Institutions on Knowledge Economy