Salim and Asma are going to a 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 3 times as much money left as the other.How much money has each spent?