Three friends have done some job together and got paid and now they need to share
the money. The first friend gets $500 and of the rest of the money. After he took
his part, the second friend gets $800 and of the rest of the money. The third friend
gets $900. Which friend got the greatest amount?​