Let the:
Inner radius of the straw be "a"
Outer radius be "b"
Height be "l"
Height immerse perpendicularly in the liquid be "x"
Density of the material of the straw be "c"
Density of the liquid be "d"
As the straw is in equilibrium,
mg = buoyant force
or, π(b2-a2)*l*c*g = π(b2-a2)*x*d*g
or, l/x = d/c