How did they know?

As we all know Saw 3 and 4 take place at the same time. In Saw 3 the detectives are unaware of there being an accomplice to Jigsaw, but in Saw 4 the detectives and FBI say Amanda in a known conspirator to the Jigsaw murders. How did they find that out about Amanda?