There were some pears, guavas and mangoes. The number of pears was three times the number of guavas. The total number of pears and guavas was half of the number of mangoes. There were 180 fruits altogether. All the mangoes were sold at 6 for $20. How much money was collected from the sale of the mangoes?