Calculate the value of x.
Give your answer as an integer or as a fraction in its simplest form.
