Right sort of idea, but check your compounds, you seem to have changed from p-dichlorobenzene to p-dichlorophenol from the first post to the next.
You also seem to have mixed up the two compounds in the second post. How would the aniline react with base, and the phenol? So where would they both prefer to be... ?