Assuming you've had the oldest and youngest age thing working, as the program is reading data and moving the cursor from type (actor/actress) to name to age, whatever age is after the name. So if the age is the youngest/oldest, the string before that is also the name of that actor/actress.
So when you compare the age to a certain value, if the age is greater than that, you assign that age to the oldest variable. As you do that simply assign the according name to the oldestActor/Actress.