To find the value of \( x \) in the equation \( 4x + 8y = 40 \) when \( y = 0.5 \), we can substitute \( y \) with \( 0.5 \) in the equation.
Starting with the original equation:
\[ 4x + 8y = 40 \]
Substituting \( y = 0.5 \):
\[ 4x + 8(0.5) = 40 \]
Calculating \( 8(0.5) \):
\[ 4x + 4 = 40 \]
Next, we subtract 4 from both sides:
\[ 4x = 40 - 4 \]
This simplifies to:
\[ 4x = 36 \]
Now, we divide both sides by 4:
\[ x = \frac{36}{4} \] \[ x = 9 \]
Thus, the value of \( x \) is \( 9 \).
So the answer is:
\[ \boxed{9} \]