Alternatively, There's a secret lever you may discover with a perception check that allows you to bypass the puzzle entirely.