Three friends got the prize money worth 36,000. The first friend would get three times the amount of the third friends portion. The third friend would get twice the amount of the second friends portion. Determine the amount that each friend would receive.