calculate the density of a liquid if 150g of a substance with 188mL volume

Divide the mass (150 g) by the volume (188 mL)

188 mL is also 188 cm^3.

Densities can be written as g/cm^3 or g/ml. The numbers will be the same.