solve answer encodig