Beginning inventory 78,000; net purchases 370,240; net markups 32,000; net markdowns 52,000; net sales 483,000.

What is the ending inventory?

a) 415,240
b) 477,240
c) 545,240
d) 509,240