If I was given another similar question, do I have to do the sum of the roots? do I have to do both or can I just do one of it?
In any situation, not only in this sum/product of roots questions, if you have 2 unknowns, you need 2 equations with those 2 unknowns in them to solve the question or at least one equation which solves one of the unknown variables.
The question asking to find k, since you have one equation which solves for k, you only need that equation. Why would you bother with another when you've already answered the question? Now, in the previous equation, you have one equation with a and m as unknown variables. You must have another equation with either 1 or 2 of the variables in order to solve for either of the unknowns. So after you found what 'a' was, you now have 2 equations which can be used to find the value of m.
You need to know what you're trying to solve and look for relevant equations which help you solve for those unknowns.