5. At Automotive Shop, 50 cars were inspected. 23 of the cars needed new brakes, 34 needed new exhaust systems, and 6 cars needed neither repair. How many cars needed both repairs? How many cars needed new brakes, but not a new exhaust system.