One day, Pranav visited his friend's house. In the backyard, he could see many mango trees full of mangoes. He asked his friend if he knew how many mangoes there were in total. In response, Pranav's friend gave him a puzzle - 'There are as many mangoes in each mango tree as there are mango trees in my backyard'. Pranav counted the number of mango trees as 24. Then, what is the number of mangoes?
48