Bill's answer is completely correct but if you need to set it up as an equation you would do it as follows:
let x = one number
let y = the other number
x + y = 28
xy = 115
y = 115/x
x + 115/x = 28
multiply all terms by x
x2 + 115 = 28x
x2 -28x + 115 = 0
now factor
(x-5)(x-23) = 0
solve for x
x-5 = 0
x = 5
therefore y = 23