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?
If David did x push-ups, then Zachary did (x - w) push-ups. So, David and Zachary did a total of x + (x - w) = 2x - w push-ups.