Two numbers are in the ratio 7:5. If 2 is subtracted from each of them, the ratio becomes 3:2. Find the numbers.