David did w more push-ups than Zachary in gym class today. If David did x push-ups How many push-ups did Zachary and David do altogether?
Zachary did w - x = 56 - 38 = 18 push-ups. 

David and Zachary did x + (w - x) = 38 + 18 = 56 push-ups altogether.