A store sold 32 pairs of jeans for a total of $1050. Brand A sold for $30 per pair and Brand B sold for $35 per pair. How many of brand A were sold?