Try to obtain equations from your problems.

For the first one:

Let a be the first number, and b be the second number,

thier sum = 5

thier product = 5

Now, If we subtract a from the both sides in equation (1), we will get:

By substituting (3) in (2), we get:

Now, Solve the last quadratic equation for a.

Once you have the values of a, substitute them in (3) to obtain the value of b.

Do not remember to reject the negative values; because the question said that : the two numbers are positive.

I will leave the second for you.

Try to obtain some equations from it.