It looks like you have the basic gist of the argument, though I'd point out that you haven't actually proven the contrapositive of the original claim.
Here's how I might write it up, just as a guide.
Claim: If xy is not divisible by n, then neither x nor y is divisible by n. (*)
Proof: We will prove the contrapositive, and so we must show that if either x or y is divisible by n, then xy is also divisible by n. (**)
If x is divisible by n, then there is an integer k such that x=kn. Then xy=(kn)y=(ky)n, and so xy is a multiple of n and is thus divisible by n. Similarly (***), if y is divisible by n, then xy is also divisible by n. Therefore if either x or y is divisible by n, then xy is also divisible by n.
And so by contraposition, the original claim is proven.##\Box##
(*) There isn't a math teacher/grader on the planet who won't love you for writing out the problem statement/claim before the solution. Do it. Seriously, do it. Be careful with paraphrasing the assigned problem, but do it.
(**) I've always been advised to let the proof reader know ahead of time what sort of proof they're about read in most instances that aren't straightforward, direct proofs. When you jump right in with "let x be divisible by n", the reader's fist though is "Why?! That's not one of the assumptions, and is actually the OPPOSITE of what you're trying to prove!" And then they read further and go "Oh, ok. I get it now." But for a second, they were confused and annoyed. You don't want the grader to be confused and annoyed by something you wrote, not even for a moment. It can also serve as a reference for YOU for what you need to get done in the proof; i.e. this is what I said I was going to do, and I'm not done until I do it.
(***) The proof of this sentence is
almost the same as the previous proof; we're just switching around the roles of some of the letters. Be very careful with using "similarly" (or "trivial" or "obvious"). When in doubt, write it out.
My advisor always says, with regards to homework-style proofs, (1) tell me what you're going to do (i.e. the claim) (2) tell me how you're going to do it (3) do it (4) let me know when you're done, and, if it's not too much trouble, remind me what you did.
Also, I would encourage you to read out loud what you have written. Or rewrite what you have written without using mathematical notation. If it sounds silly, you may want to jazz it up a bit (just a bit) with some exposition. A few "so"s and "then"s and "therefore"s go a long way.
Finally, read a lot of proofs. And watch your professor(s) do proofs. Listen to what they say as much (if not more) than you read what they write. Most of the proof is coming out of their mouth, and probably doesn't end up on the blackboard. I learned a lot about the proof-writing process just by seeing other people's proofs.