Count the number of strings of length $8$ over $A = \{w, x, y, z\}$ that begins with either $w$ or $y$ and have at least one $x$
So here is what I came up with..Can someone check my work?
$A = \{w,x,y,z\}$
$U = \{w,y\} * A^7$
$S = \{w,y\} * \{w,y,z\}^7$
$|U - S| = |U| - |S|$
$= |\{w,y\} * A^7| - |\{w,y\} * \{w,y,z\}^7|$
$= |\{w,y\}||A|^7 - |\{w,y\}||\{w,y,z\}|^7$
$= 2(4^7) - 2(3^7) = 28,394$