Two cars leave an intersection. One car travels north; the other east. When the car traveling north had gone 12 miles, the distance between the cars was 8 miles more than the distance traveled by the car heading east. How far had the east bound car traveled?

I thought the equation to be 8+B+B-12 the answer being 2miles