We first combine the 2 logs on the left into one logarithm.

math expression

To get the second line, we actually raise 2 to the power of the left side, and 2 to the power of the right side. We don't really "cancel out" the logs, but that is the effect (only if they have the same base).