Tina rode her bike a total of 12 miles from home to the post office and then to the gym. The distance from Tina's house to the post office is 5 miles. What is the distance from the post office to the gym?