Yes you are right and if you apply the same method you will get the rest of your homework right as well. You clearly lack confidence in what you are doing because your not really sure about this topic. I strongly advise you read the link that Mr F gave you, read your books examples and ask your teacher for help with your problems.