find the density of a cube if it has a mass of 2 grams and has a length of i centimeter on each edge/

volume of cube = i*i*i = i^3

You know the mass.
mass = volume x density.
Solve for density.