The product of 2 numbers is 352 and their sum is 38
Assume that the 2 numbers are x and y, then

Use equation (1) to find y in terms of x
Subtract x from both sides

Substitute y in equation (2) by equation (3)

Simplify the left side and subtract 352 from both sides

Multiply each term by -1

Factor the left side into 2 factors

The factors are (x - 22) and (x - 16)

Equate each factor by 0 to find x

Add 22 to each side

OR

Add