I have the following problem and I've been trying to solve it

but when I try solving I just can't figure out how they get to 3 and -5. I'm supposed to solve it turning it into

I need to get rid of these denominators and therefore multiply the whole expression by its least common denominator

but I stay stucked...!! Need guidance.