angle θ = 40 degrees
angle between AB and horizontal = φ, tanφ = 3/4
horizontal: R = vocosθ*t, (1)
vertical: -Rtanφ = vosinθ *t - gt2/2 (2)
plug (1) into (2)
-vocosθtanφ*t = vosinθ *t - gt2/2
divide it by t
-vocosθtanφ = vosinθ - gt/2
∴t = 2vo(sinθ + cosθtanφ)/g = 2.5 s
plug it into (1)
R = 19 m