On the one hand, the car was delayed for 30 minutes because of troubleshooting, on the other hand, it saved some time because it missed a round trip between B and C. It is known that the speed of the car is 6 times that of walking, and the distance from C to B is 20 minutes longer, so it takes 20/(6- 1) = 4 (minutes) for the car to go from C to B.
One round trip saves 8 minutes, so there are x-8 = 30 and x = 38, which means it takes 38 minutes for the car to troubleshoot on the way.