Either it was a massive coincidence or they somehow knew who Rem was. Think about it. Why would Takada use her power so early? The probability of hitting Rem or L is low. Hence, it is very likely they had an idea of who Rem was... That or they were gambling and were lucky.