If 14 men can paint a masjid in 12 hours, in how many hours can 8 men paint the same masjid?

If 14 men can paint a masjid in 12 hours, in how many hours can 8 men paint the same masjid?

Explanation

14 men × 12 hours = 168 man-hours (total work)

8 men × x hours = 168 man-hours

8x = 168

x = 168/8

x = 21 hours