do you apply the significant figure rules before doing the math or before?
You would generally apply the rule to the final result.
.
Or after, I mean?
Yes defintely at the end.
If you want the answer to 3sf and you do all your working to 3 sf there will be a build up of errors and your answer will most likely NOT be correct to 3 sf.