Questions Diagram is attached below
Answer:

Explanation:
From the question we are told that:
Speed of Train 
Angle 
Height of window 
Width of window 
The Horizontal distance between B and A from Trigonometric Laws is mathematically given by


Therefore
Distance from A-A


Therefore
Time Required to travel trough d is mathematically given as


