The two events from the text that show Mae and Imani are close friends are:
B. Imani is the only person Mae told about her mom.
D. Imani taught Mae how to code a game.
These events indicate a strong level of trust and support between Mae and Imani, which are characteristic of close friendships.