This riddle has been around for some time on internet platforms such as Instagram, Facebook, and WhatsApp, and many people still argue over what the answer might be, as there are many possibilities. The correct answer is First Heap: 22, Second Heap: 14, Third Heap: 12. To solve this problem, we shall have to start from the end. We have been told that after all the transpositions, the number of matches in each heap is the same. Let us proceed from this fact. Since the total number of matches has not changed in the process, and the total number being 48, it follows that there were 16 matches in each heap. And so, in the end we have: First Heap: 16, Second Heap: 16, Third Heap: 16 Immediately before this we have added to the first heap as many matches as there were in it, i.e. we had doubled the number. So, before the final transposition, there are only 8 matches in the first heap. Now, in the third heap, from which we took these 8 matches, there were: 16 + 8 = 24 matches. We now have the numbers as follows: First Heap: 8, Second Heap: 16, Third Heap: 24. We know that we took from the second heap as many matches as there were in the third heap, which means 24 was double the original number. From this we know how many matches we had in each heap after the first transposition: First Heap: 8, Second Heap: 16 + 12 = 28, Third Heap: 12. Now we can draw the final conclusion that before the first transposition the number of matches in each heap was: First Heap: 22, Second Heap: 14, Third Heap: 12.