To find mass of liquid you take the mass of beaker + liquid (171.223g) and subtract it from the Mass of beaker (beaker without the water). The difference is the answer.
171.223g - 150.802g = 20.421g
Density
To find density you use the formula Mass/Volume. Take the Volume given, and the mass of the liquid you just found.