EA: would have done the same as you

I wanted to say to someone, "She said that she would have done the same thing as you" (a guy had built a little gazebo on his roof and a lady was saying that she too would have done the same thing if it was here house)

So I said, "قالت، كنت عملت نفسة حاجة" but judging by the look on his face, I didn't say it right.

Could some one help me, and especially with a rule for the 'would have' construction (or direct me to a post)?