If xcos23θ+ycos4θ=16cos6θ+9cos2θ be an identity, then-
x(4cos3θ−3cosθ)2+ycos4θ=9cos2θ+16cos6θ ⇒9xcos2θ+(y−24x)cos4θ+16xcos6θ=9cos2θ+16cos6θ being an identity ⇒9x=9,y=24x⇒x=1,y=24.