10d + 5.50 = x (the total cost)
You get (2x+3)(4x^2-6x+9) when you factor 8x^3+27=0. You just divide by 3 to simplify it.