If r varies directly as p and inversely as u, and r=2 when p=18 and u= 2. Find u when r=1 and p=36.