George sold 3 cars, so he earned 3 cars * $5/car = $<<3*5=15>>15 from them.
The lego set cost was then $45 - $15 = $<<45-15=30>>30.
#### 30