During one day on the stock market, an investor lost $2500 on one stock, but gained $1700 on another. At the end of trading that day, the investors holdings in both stocks were worth $52400. What were they worth when the market opened that day?