A monopolist has two distinct, identifiable subgroups in its market. The market demand function for group A is Qa = 1000 – 4Pa and that for group B is Qb = 500 – Pb. With total cost given by C = 100Q, find the amount sold to each submarket and the price charged in each.