I don't know If I did this right.

0.4 = 0.2x
x=2
Is that right because my book is saying its 0.5

As I posted a few minutes ago, I found the same answer as you did. Is it possible that the book is wrong? Did you copy the problem correctly?