
There is a line of length
unit (where
is fixed positive real number), The point
and
choosen randomly
(uniformly) on this line, Let
be a fixed real number satisfying
Then probability that 
Offline
Hi ↑ stuart clark:,
Let us choose the coordinates of P, Q x and y respectively. So
expresses as
and so I(x,y) bas to be in 2 regions of squared ABCD of coordinates (0,0), (a , 0), (a , a), (0, a) in an orthonormal Cartesian coordinate system, containing vertices B and D and bounded by two straight lignes of equations
and
. (Make the figure)
So your probability is 
Offline