It's sorta like algebra, there are certain ways to express the operations.
If the "twice" was IN the parentheses you would do that twice and only twice. But beings it's outside the () and inside the brackets you would repeat that for the 14 times.
Also, whatever was IN the () might have been a more complicated repeat ex.: (k1,p2,yo)twice. If "twice" were inside the () then you would yo twice and not do the whole thing that's in the ().
So basically, you repeat whatever are in the () or  the specified number of times that immediately follow the signs.
Hope that helps.