How is carbolic acid formed?

Can you answer this question?