Risky Routine

To get a feel for the game theory involved, suppose that you are a gymnast planning a routine where you need to perform 8 elements. For each of these 8 elements you can attempt at a C level (for 0.3 points) or an E level (for 0.5 points) level of difficulty. Your difficulty score is the sum of these 8 numbers, and you can mix and match between C’s and E’s. You are 100% confident of being able to execute every element at the C level, but for each element you attempt at the E level, you risk a 50% chance of a 0.5 point deduction in your Execution score.
You know that your opponents are extremely talented. What number of elements should you attempt at the E level in order to maximize your chance of achieving a Difficulty + Execution score of at least 13?