Phenol dissolved into sodium hydroxide solution to give another solution A.

What would be formed when A reacted with phenylamine/nitrous acid mixture , butylamine/nitrous acid mixture and ammonia/ nitrous acid respectively ?

The resulting solution were brown , red and colorless respectively .