So you'd simply need to solve for what angles give a height of 18 and then everything between those two heights is the time for being at least that high.
-10cos(πt/41) + 15 = 18
cos(πt/41) = -0.3
This angle occurs at the angles measuring about 1.8755 and 4.4077 radians (about 107.46 and 252.54 degrees respectively). So simply set πt/41 equal to both of these and solve for t. I found that t = 24.4766 seconds and 57.5236 respectively. So the difference between these, 33.05 seconds, is the time per rotation that the Ferris wheel rider is higher than 18 meters above the ground.