UPSC EPFO 2 Jul 2023 Shift 1 — Question 36 (Arithmetic)

Medium2023EO-AO
In a desert, X and Y are two spots that are separated by 100 km. At point X, are placed two pillars, one black and one white. Along the line joining X and Y, a white pillar is placed for every 180 m and a black pillar is placed for every 350 m. How many times can one find black and white pillars together while traveling from X to Y ?