Montvale-based Great Atlantic & Pacific Tea Company received approval from the bankruptcy court Monday to sell prescription records and inventory from 12 supermarket pharmacies to the Rite Aid drugstore chain for approximately $8.1 million. One North Jersey supermarket pharmacy, at the Pathmark at 85 Ackerman Ave. in Clifton, is included in the deal, along with six other New Jersey store pharmacies owned by A&P.