You have to get rid of the xs on the bottom. To do this, you multiply the left fraction by x, and multiply the right fraction by x+7. (Think about it: if you have 1/2, and you want to get rid of the 2 on the bottom to make it one line, you multiply it by 2)
PS - -9/7 is not correct: You can check by substituting -9/7 into the equations: 3/(-9/7) = -2.33333. However, 12/ (-9/7 +7) = 2.1, which doesn't equal the left hand equation (and they have to because of the equals sign.)