The proportion of knights was 8 : 13, so, to calculate the proportion of not knights, we can start by noticing that the proportion of knights plus the proportion of not knights is everyone, so 1.
We also can notice that 1 can be rewritten as:
So, if "p" is the proportion of not knights, then:
That is, the proportion of trick or treaters that were not dresses as knights is 5 : 13.