Let the total number of eggs be \( x \).
If 32% of the eggs were bad, then 68% of the eggs were good (since \( 100% - 32% = 68% \)).
The number of good eggs can be expressed as:
\[ 0.68x = 34 \]
To find \( x \), we can solve the equation:
\[ x = \frac{34}{0.68} \]
Calculating that gives:
\[ x = 50 \]
Therefore, the total number of eggs in the basket is 50.