calculates the youngest among three persons