Calculus Question

How do I know to put (ax - b) as the linear factor?
Are all factors linear?
How am I supposed to work out that b = 5?