Cheryl walked 2 miles x 3 hours = <<2*3=6>>6 miles.
Once Cheryl was 6 miles away, she walked back home, another 6 miles, so she walked 6 + 6 = <<6+6=12>>12 miles.
#### 12