This is a very informative video from YouTube that explains how these puzzles can be calculated
This video shows a written method that would be used in class - column method