 
 <translate> Let X be the distance Sam ran. His walk through the store was twice the distance of his run, so his walk was 2X. He biked for 12 miles and went 18 miles in all, so he walked and ran 18 - 12 = 6 miles. Thus, his walk and run together were X + 2X = 3X = 6 miles. Thus, he ran X = 6 / 3 = 2 miles. So the answer is 2. <hau> Bari X ya zama nesa da Sam ya gudu. Tafiyarsa ta shagon ya ninka nesa da gudu, don haka tafiyarsa ta kasance 2X. Ya yi tafiyar mil 12 a kan keke kuma ya yi mil 18 gaba ɗaya, don haka ya yi tafiya da gudu 18 - 12 = mil 6. Saboda haka, tafiyarsa da gudu tare sun kasance X + 2X = 3X = mil 6. Saboda haka, ya gudu X = 6 / 3 = 2 mil. Amsar ita ce 2. 