Molarity is the number of moles that are contained in 1000 cm³ or a liter of water.
In this case the molarity is 0.58 M meaning 0.58 moles of the dye are contained in 1000 cm³ or a liter of water.
The beaker is at 150 cm³, there the number of moles will be;
=0.58 × 150/1000
= 0.087 moles