Melvin, Nelson and Oliver were playing cards.  At first Melvin started with $$40$$ cards and then he gained $$\frac{5}{8}$$ more than his original number of cards from Nelson.  In the next round, Melvin and Nelson each lost $$\frac{1}{4}$$ of Melvin\textquotesingle s original number of cards to Oliver.  In the final round, Melvin gained $$\frac{1}{8}$$ of his original number of cards from Nelson. After the final round, Melvin, Nelson and Oliver all have the same number of cards. What was the total number of cards Melvin, Nelson and Oliver had at first? 
Overseas Competition->Knowledge Point->Word Problem Modules->Inverse Operation Problems->Inverse Operation Problems with Single Variable