James is putting together 4 tables.  Each table has 4 legs and each leg needs 2 screws.  He has 40 screws.  How many screws will he have left over?
Please reason step by step, and put your final answer within \boxed{}.
user