Two locations A and B are connected by a 5-mile trail which features a lookout C. A group of 15 hikers started at A and walked along the trail to C. Another group of 10 hikers started at B and walked along the trail to C. The total distance travelled to C by all hikers from the group that started in A was equal to the total distance travelled to C by all hikers from the group that started in B. Find the distance (in miles) from A to C along the trail.