Salim and Asma are going to the fair to enjoy themselves. Their parents give Rs 49 and Rs 45 respectively.as spending money. At the end of the day they have spent equal amounts,but one of them has three times as much money left as the other. How much has each spent ?