In this expression, 1/2 is the coefficient of the variable "q":
1/2q + 5/2
term with the variable: 1/2q
variable: q
coefficient of the variable: 1/2
constant term (without a variable): 5/2
To factor out the coefficient of the variable, you need to divide each term by 1/2:
1/2q + 5/2 = 1/2 (q + 10/2) = 1/2 (q + 5)