In a computer game, a builder can build a wall in 20 hours while a destroyer can completely demolish such a wall in 40 hours. In the beginning, both builder and destroyer were set to work together on a basic level. But after 30 hours the destroyer was withdrawn. What was the total time taken to build the wall?