To find the number of vanilla cupcakes at the party, we start by using the given ratio of chocolate cupcakes to vanilla cupcakes, which is 4 to 3.
This means that for every 4 chocolate cupcakes, there are 3 vanilla cupcakes.
Let's denote the number of chocolate cupcakes as \( C \) and the number of vanilla cupcakes as \( V \). According to the ratio, we can set up the equation: \[ \frac{C}{V} = \frac{4}{3} \]
We know that there are 24 chocolate cupcakes, so we can substitute \( C \) with 24: \[ \frac{24}{V} = \frac{4}{3} \]
Now, we can cross-multiply to solve for \( V \): \[ 24 \cdot 3 = 4 \cdot V \] \[ 72 = 4V \]
Next, we divide both sides by 4 to solve for \( V \): \[ V = \frac{72}{4} = 18 \]
Thus, the number of vanilla cupcakes at the party is \( \boxed{18} \).