Help

I need help; my brain is not smart enough to understand how a cam works and how to do the timing. Could anybody tell me why some Lego vacuum engines have two valves and not one and when the valve should be open and when not? and maybe how i make the valve stay open long enough. Thank you