Two men were arrested Sunday afternoon after police found 24 pounds of marijuana in a locked container inside a parked BMW outside an In-N-Out Burger, officials said.

Stephen Thompson, 27, of Canoga Park and Trevor Alcorn, 30, of Millville, near Redding in Northern California, were arrested in the parking lot of the In-N-Out in the 300 block of Harvey Drive, Glendale Police Sgt. Tom Lorenz said.

The marijuana was divided into 24 1-pound bags, which Lorenz said could be worth $150,000 to $200,000 if sold on the streets. Some bags were labeled “Berry White,” “Blue Cheese,” “Bubba” and “OG Kush.”

A police officer was pulling into the parking lot when he spotted Thompson smoking within 10 feet of the restaurant’s front door, a violation of the city’s smoking ordinance, Lorenz said. As the officer approached, Alcorn and a third man walked away from Thompson.

The officer then saw Alcorn place an item inside a compartment on the BMW’s passenger door. The officer approached Thompson, who apologized for smoking and being unfamiliar with the ordinance because he didn’t live in the area.

Thompson, Lorenz said, told the officer he was on parole and was in possession of medicinal marijuana. He also denied knowing Alcorn and the other man.

But police said Alcorn and the other man told the officer they did know him and had arrived at the restaurant with him.

Alcorn told the officer that he a small amount of marijuana inside his car and allowed him to search the BMW.

In the trunk of the BMW, the officer found the marijuana hidden inside a plastic bin sealed with a padlock, Lorenz said. Police impounded the BMW and arrested Thompson and Alcorn. Officers determined the third man, who was not identified, was not involved and was not arrested.

Thompson remained in custody Monday in lieu of $50,000 bail, according to Los Angeles County Sheriff’s Department records. Alcorn was released about 8 p.m. after bonding out of custody.