Solution:
For any positive integer n, the number of multiples of n less than or equal to 2019 is given by
⌊n2019⌋.
So there are ⌊182019⌋=112 multiples of 18, and ⌊212019⌋=96 multiples of 21. Moreover, since lcm(18,21)=126 there are ⌊1262019⌋=16 positive integers less than 2019 which are a multiple of both 18 and 21.
Therefore the final answer is
⌊182019⌋+⌊212019⌋−2⌊1262019⌋=112+96−2×16=176.