Three police agencies investigating a gas-station robbery in the Town of Lockport late Sunday teamed up to arrest two suspects who also were accused of having a small amount of crack cocaine on them, State Police at Lockport reported.

One man entered the Sunoco station at Transit Road and Robinson Road and stole an undetermined amount of cash while threatening that he had a knife, police said. The thief fled the scene with another suspect who was waiting outside in a vehicle.

Armed with a description of one suspect and the vehicle, Lockport police and Niagara County sheriff’s deputies stopped a vehicle on Lincoln Avenue in Lockport. Both suspects then were turned over to State Police.

Troopers charged Danny P. Merritt, 33, of Union Street, Lockport, and Glenn L. Helwig, 63, of Garden Street, Lockport, with first-degree robbery and criminal possession of a controlled substance, according to police reports.