A bag contains Rs. 112 in the form of 1-rupee, 50-paise and 10-paise coins in the ratio 3:8:10. What is the number of 50-paise coins?