Let's define the variable \( x \) as the number of cakes Sam baked this week.
Sam's total earnings consist of her fixed weekly pay of $20 plus $4 for each cake baked. Therefore, her total earnings can be represented by the equation:
\[ 20 + 4x = 60 \]
This equation shows that her fixed payment of $20 plus the money earned from baking \( x \) cakes (where each cake earns her $4) equals her total earnings of $60.
From the provided options, the correct equation is:
d. \( 20 + 4x = 60 \).