Two numbers are in the ratio 3: 7. If 1 is added to the smaller number and 7 is added to the larger, they will be in the ratio 1: 3. Find the numbers.