Assets/Codes/code2.cs(29,24): error CS0029: Cannot implicitly convert type `string' to `UnityEngine.

Use code tags, please Using code tags properly
if(textTXT = respostaTXT)
= is to assign == is to check equality

textoTXT = "Teste";
You probably want textoTXT.text = "Teste";