Authorities in the Bronx have charged four people with attempted rape and promoting prostitution for devising a plan to force a 14-year-old girl to have sex with a 45-year-old man.

Three of the defendants, including one teenager, agreed to supply the man with a victim in exchange for $50, the Bronx District Attorney’s Office said in a statement.

Kashalema Kidd, 20, Savon Falu, 21, and Justin Palmer, 16, all of the Bronx, and Avis Ruiz, 45, of Brooklyn, were charged. Falu faces additional counts of prostitution, and Ruiz with forcible touching, patronizing a person for prostitution and sexual assault.

According to police, on the morning of Oct. 27, Falu, Kidd and Palmer agreed to provide Ruiz with the victim in exchange for the cash.

The group forced the girl into a motel room, authorities said. When two police officers tried to approach Falu, Kidd and Palmer near the motel, the suspects ran. The officers soon arrested Ruiz and the three others, police said.

Falu faces up to 25 years in prison if convicted, and Palmer up to 15 years. A judge set bail at $100,000 for each one. Kidd also faces up to 15 years, with his bail set at $10,000. Ruiz, who could receive four years in prison if convicted, was ordered held on $50,000 bail.