The equation for the molarity, or molar concentration, is:
![C=\frac{n_{\text{solute}}}{V_{\text{solution}}}](https://img.qammunity.org/2023/formulas/chemistry/college/c41gxt2qrgdgq3izt0g3zri23qiao94ql1.png)
Where C is the molarity, n is the number of moles of solute and V is the volume of solution.
Since we know the molarity and the volume of solution, we can calculate the number of moles of solute:
![\begin{gathered} V_{\text{solution}}=6.99L \\ C=2.87M=2.87mol\/L \\ n_{\text{solute}}=C\cdot V_{\text{solution}} \\ n_{\text{solute}}=2.87mol\/L\cdot6.99L=20.0613mol\approx20.06mol \end{gathered}](https://img.qammunity.org/2023/formulas/chemistry/college/762ei8doj6uytunpef9zbe4owo4xafatiq.png)
So, there is approximately 20.06 mol in the solution.