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