i know the formuula for density is d=m/v. is the formula for mass then m=dv? what about the formula for volume? is that v=m/d?

Yes, and yes.