If we are trying to add #1/2 + 2/4#, we can change #2/4# into its reduced form:
#2/4 = (1xx2)/(2xx2) = 1/2xx2/2= 1/2xx1 = 1/2#
so #1/2+2/4 = 1/2+1/2 = 1#
Because the numerator and denominator of #2/4# have a common factor of #2#, we could treat it as multiplying by #1# and cancel them. We can also do this in reverse to add any fractions we want.
Suppose we want to add #2/9 + 1/6#. We can't reduce here, but we can multiply by #1# to give us a common denominator:
#2/9 xx 1 = 2/9 xx 2/2 = (2xx2)/(9xx2) = 4/18#
#1/6 xx 1 = 1/6 xx 3/3 = (1xx3)/(6xx3) = 3/18#
so #2/9 + 1/6 = 4/18 + 3/18 = 7/18#
While you can always multiply each fraction by a #1# formed from the other exponent, notice that we didn't multiply #2/9# by #6/6# or #1/6# by #9/9#. This is because we knew that the least common multiple (LCM) of #6# and #9# is #18#, and so we only multiplied by what was necessary to get that. In general, it's easier to multiply to the LCM, as we work with the lowest necessary values.
Even in a case where you can't find the LCM (or there isn't one), this technique still works. For example, even when we have variables or irrational numbers in the mix:
#2/pi + 3/x = (2/pixx x/x) + (3/x xx pi/pi)#
#=(2x)/(pix) + (3pi)/(pix)#
#=(2x+3pi)/(pix)#