Aamir would take 9 hours to build a chimney alone, and Saif would take 10 hours to build it alone. When they work together they talk a lot, and their combined output is decreased by 10 bricks per hour. Working together, they build the chimney in 5 hours. How many bricks are in the chimney?