A plane rises from take-off and flies at an angle of 10 degrees with the horizontal runway. When it has gained 500 feet, how do you find the distance, to the nearest foot, the plane has flown?