That is surely a mistake. They gave the value of its conjugated acid pK
a.
pK
a of conjugated acid is calculated by the following formula: pK
w=pK
a+pK
b. From here you can calculate that the pK
b of ammonia is around 4.75.
And for aniline they gave the pK
a of the conjugated acid. Now, you calculate the pK
b .