What is the cost of goods sold (COGS) for the perpetual inventory system using FIFO, based on the provided information for Item with beginning inventory, purchases, and sales on October 1, 7, 15, and 24?

A) $1,840
B) $1,820
C) $1,845
D) $1,795