Write as a Function of q q=12-3p