So let's say that the first number is xxxxx and the second one is yyyyy.
The value of 7 in the first should be 1000 times bigger than in the second, so let's make it 7000 and 7:
z7xxx and yyyy7
now, the value of 3 in the first number is 100 times the value of the 3 in the second number
let's make it 37xxx - then the value of 3 is 30 000 so in the second number it must be 300,
then we have 37xxx and yy3y7
let's substitute the ys and xs by 0:
37000 and 307 - that's the solution!