Step-by-step explanation:
It is given that,
Initial position of the Apple,

Initial velocity, u = 3.1 m/s
Position of friend, Y = 4.2 m
Using second equation of motion as :

..............(1)
On solving the above quadratic equation we get t = 2.02 seconds
Since, the value of t is real. So, the apple will reach a friend in a tree house. Hence, this is the required solution.