A dance troupe has a total of 50 dancers split into 2 groups. The costumes worn by Group A cost $80 each, and those worn by Group B cost $90 each. If the total cost of all the costumes is $4,270, what is the total cost of the costumes worn by Group B