Hi. I need help and would appreciate if you'll lend me a hand. Thanks.

Sorry for putting this in the Gen.Dis.
Anyway, here is the problem:
[there are a lot of upcoming problems so keep posted if you still wanna help me. THANKS!

]
Villon Co. had 80,000 ordinary shares outstanding in Jan. 2007. The company distributed 15% share dividend in March and a 10% share dividend in June. After acquiring 10,000 shares of treasury stock in July, the co. split its share 4-for-1 in Dec. How many ordinary shares are outstanding as at Dec. 31, 2007.
[We were given the answer keys by our professor and the answer is
364, 800 but the problem is I don't know how to solve.]
Can you help me? Thanks!