On Brooklyn Nine-Nine Season 3 Episode 5, the third installment of the precinct's Halloween Heist, Jake and Holt decide to have a tie-breaker competition, and attempt to steal the same object in order to be crowned "amazing detective-slash-genius".
They split the precinct into teams to help them win. Jake takes Charles and Rosa, while Holt takes Terry and Gina. However, neither of them pick Amy; Holt doesn't trust Amy because she's dating Jake, and Jake doesn't trust Amy because of her need to impress Holt.
The object in question is a toy crown, which is placed in a briefcase in the interrogation room. Team Jake gets to it first, but this was part of Holt's plan in order to let Jake get overconfident.
Holt steals it back, but is forced to stash it in a trash can when he's almost caught by Jake. However, when Terry goes to retrieve it, it's not there, as a janitor has taken it.
Amy is the only one with the janitor's address, but she decides to give it to both teams and let them duke it out. After a chase, it's revealed that Amy stole the crown in defiance of both Jake and Captain Holt.
Meanwhile, during the heist, Charles tries to set Gina up with a guy he knows. Gina refuses at first, but later agrees to meet the guy and finds him quite attractive. However, she is perturbed to learn that the guy is Charles' girlfriend's twin brother.