A certain t-shirt costs $10 less than half the cost of a pair of pants. If the t-shirt costs $15, how much is the cost of the pair of pants?​