So, the answer to 27.) would be 2x. Both 6x and 2x can be divided by 2x, but they can't go any higher without the end-answer becoming a fraction. As such, 2x is the greatest common factor.
For 28.), x and x^2 can't be like terms, since like terms have the same variable and exponent :)
Hope I could help!