Two number are in the ratio 3:5 . If 9 is subtracted form each , the new numbers are in the ratio 1223. The smaller number is