The above solution that i gav is correct........there is also another solution.....
here it is
p . a = o-----------------------eq1
This implies that "p" and "a" are perpendicular.
Also given
p x a = b
crossing both sides with a vector we get
( p x a ) x a = b x a
( a . p ) a - ( a . a ) p = b x a
( 0 ) a - ( a )2 p = b x a { from eq1 }
- ( a )2 p = - a x b
( a )2 p = a x b
p = a x b
----------
a2