The angular velocity w = 2pi radians/40 seconds = pi/20 (radians/sec)
When the rider is 30 ft above the ground, he is 90 deg + tan-1(5/25) deg = 90 + 11.31 = 101.31 degrees = .5625pi radians along the ferris wheel circle.
Then, .5625pi radians/(pi/20)(radians/sec) = 11.257 seconds