Sam has already biked 1/4 of all the distance and 12 miles, and he still needs to bike 3/8 of the total distance and 9 miles. What’s the total distance?