529 Plan was used for non-qualified withdrawals

Essentially my mother let me withdraw the 529 she had set up for me and I'd like to take full responsibility for filing the taxes for it as my own income since I had used the money for bills due to emergency reasons. I have seen things about 1099Q but I don't know the first thing about where to input all this information or where to get these forms. Where do I even start and how do I go about finding the right forms so I can pay the penalties and taxes?