The molarity of a solution is given by the following formula:
[tex]molarity=\frac{molesofsolute}{litersofsolution}[/tex]Replace for the given values in the equation and find the molarity:
[tex]molarity=\frac{4.5mol}{2L}=2.25M[/tex]It means that the molarity of the solution is 2.25M.