You can find this answer multiple ways.
One way is to represent it as an equation and solve for x, The total number of vehicles.
0.4x = 98
x = 245 vehicles
Or write a proportion using the fraction for 40%.
2/5 = 98/x
5 x 49 = 245
There are 245 vehicles in the garage.