A company has beginning inventory of 11 units at a cost of $29 each on February 1. On February 3, it purchases 39 units at $31 each. 17 units are sold on February 5. Using the periodic FIFO inventory method, what is the cost of the 17 units that are sold?