The parent company of two Massachusetts Mazda dealerships will pay $350,000 to settle allegations the stores charged Black and Latino customers more for finance-and-insurance products than white customers, the state attorney general's office said Tuesday.