When 1 is added to each of the given two numbers, their ratio becomes 3 : 4 and when 5 is subtracted from each, the ratio becomes 7 : 10. The numbers are