In December 2018, 19-year-old Mohammed Ahmed from Hampton was in the car park of Isleworth Station, when he pulled out a silenced pistol.
He shot a car twice, narrowly missing one person and the passenger.
19-year-old Mosaab Berrada of no fixed abode and 18-year-old Junior Chartsrivisej from Brentford have also been jailed.
The three are sentenced to a total of over 50 years.