This is a homogeneous second order differential equation with constant coefficients.
q"-5q'+6=0 ... (1)
We solve the auxiliary equation:
m=2 or 3
The solution to the homogeneous differential equation is thus:
q= C1*e^(2) + C2*e^3