look in 1 one we have to take the x dirrection along the incline and y direction prependicular to it .
U in x direction = u cos (a-b ) where b = beta and a = alpha
u in y direction = u sin(a-b)
also g will be resolved in two components
accleration in x direction = - g sin b
and in y direction = -gsin b
then in time t distance travelled in x direction
x= ucos (a-b) - 1/2 gsin b t^2 ------- 1
now we have to first find t
t can be obtained if y corrdinate = 0
0 =usin(a-b) t -1/2 gcos b t^2
t = 2usin(a-b) / gcos b
putting this in 1
we get
R = 2u^2 sin (a-b)cos a / gcos^2 b ... .