Vu Nguyen purchased x shares of Baron Electric stock at $30 per share. He sold all the stock for $12 per share and suffered a losss of $360. How many shares of stock did Vu purchase?