(7p+u)(p+v) and you must have 7pv+up=(7v+u)p=18p and u*v=9.
Pick your possible combinations u and v for the product 9.
You have 1 and 9
OR
you have 3 and 3.
You must expect one of the numbers positive and one of them negative.
, check this.
OR
, check this.
OR
, check this.
Which combination (including signs) works?
(Note that the rendering is working but is difficult to read).