\(A=8x^3+12x^2y+6xy^2+y^3=27\)
\(\Leftrightarrow\left(2x+y\right)^3=27\)
=>2x+y=3
\(B=x\left(2x+y\right)+xy+\dfrac{1}{2}y^2\)
\(=3x+\dfrac{1}{2}y\left(2x+y\right)=3x+\dfrac{1}{2}y\cdot3=3x+\dfrac{3}{2}y\)
\(=\dfrac{3}{2}\left(2x+y\right)=\dfrac{3}{2}\cdot3=\dfrac{9}{2}\)