Solution :
The motion in the y direction.
The time taken by the toy rocket to hit the ground,
![$S=ut+(1)/(2)at^2$](https://img.qammunity.org/2022/formulas/physics/college/jy6i6ghwlxo0b3gtbxuaex2musttn0h4z4.png)
S = distance travelled = 30 m
u = 0 m/s
a =
![$9.8 \ m/sec^2$](https://img.qammunity.org/2022/formulas/physics/college/cihniuqm6p2fsgzy71mgjnm6sq2onpzjof.png)
t= time in seconds
Therefore,
![$30 =(1)/(2)9.8 t^2$](https://img.qammunity.org/2022/formulas/physics/college/f2vniehhf6mqrxewkbmws5lzxfkbqp87ey.png)
t = 2.47 sec
Now motion in the x direction,
u = 12 m/sec
![$a=1.6 t \ m/sec^3$](https://img.qammunity.org/2022/formulas/physics/college/9xu9gvt3y5paegrq2itch8lw2ljf1elx1r.png)
Upon integration 'v' with respect to 't'
![$v=(1.6t^2)/(2)+12$](https://img.qammunity.org/2022/formulas/physics/college/92cgsn11vqx1ny02rf7cj670sy4k5k6usj.png)
Once again integrating with respect to t,
![$s=(1.6t^3)/(6)+12 t$](https://img.qammunity.org/2022/formulas/physics/college/r1b18wgipmehfq9ttmlu91wwevsogb5fxm.png)
![$s=(1.6(2.47)^3)/(6)+12 (2.47)$](https://img.qammunity.org/2022/formulas/physics/college/mw69n6g64we7eu2h1aple0wac5eti8eneo.png)
= 0.0176+29.64
= 29.65 m
Therefore, the toy rocket will hit the ground at 29.65 m from the building.