Given:
radius of Ferris wheel = 40 ft
height of a car = 5 ft
height of a tent = 20 ft
no. of passenger cars = 20
time to load all cars = 12 minutes
time for 1 rotation = 2 minutes
time for all rotations = 8 minutes
What we want to know is how many degrees the car will have to travel along the circle before it reaches a height of 20 ft.
We can draw a triangle to represent the unknown and find the angle.
The total height from the ground to the center of the Ferris wheel is 45 ft (5ft car height + 40 ft radius). We deduct the 20ft height of the tent so we get the side of the right triangle we're using to solve for the missing angle. That height is 25 ft.
The radius also serves as the hypotenuse of the triangle.
We can then use the following to solve for the angle theta:

Now we know that the car must travel 51.3 degrees along the circle before it gets to a height where it can see above the tents. If one rotation is 360 degrees and it takes 2 minutes to complete one round, then to find the time it will take to travel 51.3 degrees, we use the following equation:

It will take them 17.1 to be able to start looking for their house.
Now every time the car goes around the path of the Ferris wheel, for 17.1 going up and another 17.1 seconds going down, they will not be able to look for their house.
17.1 seconds x 2 x 4 turns = 136.8 seconds
8 minutes - 136.8 seconds = 480 - 136.8 = 343.2 seconds or 5 minutes and 43.2 seconds
They have 5 minutes and 43.2 seconds to look for their house.