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