Hi,
The idea is, the labeling is just according to the definition.
DEFN: polynomials whose only common factors are constants considered 'relatively prime'?
1) 5x, x^2 || have x in common
5) 2x+4, 2x^2-4 ||Only have a 2 in common and 2 is a constant, so these are relatively prime