Newton's Second Law says:

Acceleration is directly proportional to net force and inversely proportional to total mass.

There are two ways to calculate net force. You will probably need both of these for a single problem!
Use your free body diagrams to calculate net force
Use F = ma to calculate net force