you wrote
Did you write to her?
Вы написали это три года назад.
You wrote this three years ago.
When did you write this book?
Если вы написали на сиденье в туалете, то вытрите за собой!
If you've peed on the toilet seat, wipe it up after yourself!
Did you write this book?