how do u get the lines into the form P+tD and Q+te
From the series of your questions, it seems that you are asking for a basic course in vector geometry. We are not prepared to offer instruction. You ought to have text material that contains this basic material.