Let the number of hours John spent on the project be \( x \).
According to the information provided:
-
Dawn spent 1.5 hours less than 5 times the hours John spent: \[ \text{Dawn's hours} = 5x - 1.5 \]
-
Keith spent 0.8 hours more than 4 times the hours John spent: \[ \text{Keith's hours} = 4x + 0.8 \]
Since Dawn and Keith spent the same amount of time on the project, we can set the equations equal to each other: \[ 5x - 1.5 = 4x + 0.8 \]
Now, we will solve for \( x \):
-
Subtract \( 4x \) from both sides: \[ 5x - 4x - 1.5 = 0.8 \] \[ x - 1.5 = 0.8 \]
-
Add \( 1.5 \) to both sides: \[ x = 0.8 + 1.5 \] \[ x = 2.3 \]
So, John spent \( 2.3 \) hours working on the project.
Thus, the answer is \( \boxed{2.3} \).