Gwen is buying 3 identical pairs of shoes that have a total cost of $40.50 after the discount of 40 percent off. What is the regular price of each pair?