Correct option is B. In these types of questions, the easiest thing to do is to start with the last picture and undo the steps taken in the question. When we open it to B we will get 2 triangles on the bottom of Square. When we open it to A we will get 2 more triangles on top of Square. So, the answer is B.