若空间三点A(1,5,-2),B(2,4,1),C(p,3,q+2)共线,则p=______,q=______.