Let the pipe with large diameter and smaller diameter be pipes A and B respectively. Also let pipe A work at a rate of x hours/ unit and pipe B work at a rate of y hours/unit. According to the question,
x+y=112⇒12x+12y=1.....(i)
and 4x+9y=12⇒8x+18y−1.....(ii)
Multiply (i) by 2 and (ii) by 3, we get
24x+24y−2 and 24x+54y−3
on solving we get, 30y=1⇒y=130
and x=120
Hence, the pipe with large diameter will take 20 hours to fill the swimming pool and the pipe with smaller diameter will take 30 hours to fill the swimming pool.