your function will be 24=X+(Y+5)
to solve you subtract 5 from each side giving you 19=X+Y now you divide the 19 by 2 so you figure out the base integers giving you 9.5
now you add 5 to one of your integers meaning 9.5+5=14.5
so your integers are 9.5 and 14.5
to check this you do 14.5-9.5 which equal 5 now you do 14.5+9.5 which equals 24