Let r, b and w profits from red, blue and white cars respectively.
From the given conditions we get: b = w + 10 ..(1), r = w -7 ...(2)and 2r = b -2 ..(3)
Let's eliminate w from equation (1) and (2):
b - 10 = w (from equation 1) = r+7 (from eqn 2)
ie b - 10 = r + 7, or r = b -10 -7 = b -17 or multiplying both sides by 2, 2r = 2*(b-17) = 2b -34 -- (4)
If we equate 2r from (3) and (4), we get 2b -34 = b -2
Subtract b and and add 34 on both sides, we get 2b -34 -b +34 = b -2 -b +34 or b = 32.
Answer is 32.
Check b = 32, w =22, r = 15, 2r = 2*15 =30= 32 -2 = b-2.