About poligamy

First, I would like to say Im a brazilian member of the Church, so please, don't be mad if my english is a little broken.

Now, for the actual thing (idk if I used the right flair, please correct me)

I grew up in the Church, and now im a teenager. Im in the last "position" in the Aaronic Priesthood, and I grew up hearing that the prophet wasn't poligamic. I decided to search it up, and he actually did practice it? Im very confused, because people also claim he had like 30 wives, and many were hidden from Emma, and that he also had "more intimal" (idk if I can use the actual word here) moments with them, had babies, etc. Can you guys please tell me all you know about it? I will try my best to read everything, and I might ask you guys a few things

Edit: Wow, thank you so much EVERYONE! You guys managed to cover all the doubts I had, I love you all. I read all the comments, and I will now study on my own with all the sources presented here. Im so glad God inspired me to come here and ask y'all, I didn't even know we had a subreddit for the Church (even if its not official, which idk), I came across it while searching about poligamy in Google. Anyways, you guys helped me a lot, I can barely express how thankful I am! I will make sure to include everyone in my prayers. 🙏