Let's say that the two numbers can be represented by the letters "x" and "y."
Since the difference between them is 25 (we'll assume x is more than y), then x = y + 25.
We also know that x (the first number) is six times larger than y. So x = 6y.
We can now do a substitution:
x = y + 25
x = 6y
6y = y + 25
5y = 25
y = 5
If y = 5, then x = 30 (because x = y + 25).
Now let's see if that holds when we try the second equation.
x = 6y
30 = 6(5)
That is true!
The first number is 30, the second number is 5.