Looks good !
A car costs 6 pencils, less the 2 you have leaves a balance of 4 pencils, which cost 4 x 12 = 48 yellow cards. These would have needed 48/4 = 12 reds before pup had his feast, but now are worth just 6 of the more valuable reds.
I make it 6 also
A toy car is worth 6 pencils
As you are paying for it using 2 pencils and the rest in red cards, you need the equivalent of 4 pencils in red cards
Each pencil is worth 12 yellow cards or 3 red cards at the exchange rate of 4 to 1. Therefore you would need 3 x 4 = 12 red cards initially