PLEASE HELP!!

Arrange these events from Japanese history in the order in which they occurred A. Yayoi culture flourished, and wet rice agriculture became common. B. Prince Shōtoku wrote the first constitution of Japan. C. The Ainu community settles in Japan. D. The first Yamato emperor came to power. E. The Tale of Genji was written. F. The first shogunate was formed.