Two numbers are in ratio 1:3. If 5 is added to both the numbers, the ratio becomes 1:2. Find the sum of numbers.