Phyllis invested $50,000 in two different types of stock. The first type earned 10% and the second type earned 15%. If the profit on the 15% stock was $2,500 more than the profit on the 10% stock, how much did Phyllis invest in the 15% stock?​