As per the given information, we can set up two equations:
First number = 1/2 * second number + 3
First number = 1/4 * second number + 5
Since both equations are equal to the first number, we can set them equal to each other:
1/2 * second number + 3 = 1/4 * second number + 5
Simplifying this equation, we get:
1/4 * second number = 2
Multiplying both sides by 4, we get:
second number = 8
Now we can substitute this value back into one of the original equations to find the first number:
First number = 1/2 * 8 + 3 = 7
Therefore, the first number is 7 and the second number is 8