(a) Fraction protonated
For a base B and its conjugate acid BH+:
[B][BH+]=10pKa−pH
Aniline: pKa(C6H5NH3+)=14.0−9.38=4.62
[B][BH+]=104.62−2.0=102.62=417
Protonated=1+417417×100=99.8%
p-Nitroaniline: pKa=14.0−13.0=1.0
[B][BH+]=101.0−2.0=0.10
Protonated=1+0.100.10×100=9.1%

(b) Outcome and reason
The protonated form is an ionic salt that dissolves in water but not in ether. Aniline is 99.8% converted to C6H5NH3+ and is extracted into the aqueous layer. p-Nitroaniline is only 9.1% protonated, so it stays mainly in the ether layer.
The difference comes from the nitro group. In p-nitroaniline the nitrogen lone pair is delocalised through the ring onto –NO2 (–R effect, added to its –I effect), so it is far less available for a proton than in aniline. Its Kb is 1013.0−9.38≈4×103 times smaller, which is enough to separate the two amines with one acid wash.