Question

Complete the following reactions and show stereochemistry. How do I know which beta hydrogen gets removed?