To solve any problem in math or physics, you collect all the formulas,
laws, rules, and equations that you know about the subject, then, along
with the given information, use them to find the missing information.
So the answer to "how" really depends on what information you're given.