Input field for the correct answer and chat with a photo

Hello need help. It is necessary to make a field inside so that a person can enter the answer to the task and it can be seen only in one line, and it’s good if they add a point if the answer is correct, I don’t understand how to implement this function and I still need to make a chat so that you can upload photos