Length of a truck (including required gap) $= 10 m + 20 m \implies 30 m $
Length of a car (including required gap) $=5 m+ 15 m \implies 20 m$
$\therefore$ one pair of truck and car needs $30 m + 20 m = 50 m $ length
Let $n$ be the number of repetition of one pair of truck and car in $1$ hour
Given speed $= 36$ km/hr = $36000$ m/hr
$\frac{50 m \times n}{1 \text{ hr}} = 36000 m/hr$
$\implies n=\frac{36000}{50} \implies 720 \text{ pairs of vehicles}$
Total number of vehicles $= 720 \times 2 = 1440 $ vehicles
PS: We do not need the length of the bridge to solve this question as long as the length is at least $50$ m.