Im not sure if this is exactly what your assignment is looking for but this is solving for X
9.3m questions
12.0m answers