solved using fraction and LaTeX notation in solution