Turn both hourglasses over. Each time the 4-minute hourglass empties, turn it over. Denote the time when the 7-minute hourglass empties by A. When the 4-minute hourglass empties for the fourth time, 9 minutes have elapsed since A.