For gym class, Gracie keeps a record of how many miles she runs. For the first half of the semester, she runs 23 miles, and her grand total at the end of the semester is 50 miles. How many miles did she run in the second half of the semester?
A) 27
B) 37
C) 50
D) 73