To prepare the brownies. Combine dry ingredients excluding sugar in bowl. Set aside. Melt butter with sugar and water on medium heat until it boils. Immediately remove from heat and stir in 1 bag of chocolate chips. Add eggs and vanilla, whisking well. Stir in dry mixture. Add final package chocolate chips, stir. Pour into prepared 9 x 13 pan. Set aside while you make the cookie dough.
To preare chcolate chip cookie layer. Sift together dry ingredients excluding sugar. Set aside. Cream together butter and sugars. Beat in eggs and vanilla. Slowly stir in dry mixture, then add chocolate chips. Drop spoonfuls of the dough on top of the brownie batter.
Bake at 325F for 50 to 60 minutes or until toothpick comes out clean from the center.