Either way is correct.
but in mexico it usually goes before and in spain it's usually attached to the end.
La lámpara está entre los sofás
1 se lavaron
2 nos lavamos
3 se peinaron
4 nos peinamos
5 se cepillaron
6 nos cepillamos
7 te pusiste
8 me puse
9 te quitaste
10 me quite
hope that helped