Jane thinks of a number, x, multiplies it by 7 and writes down the result. Andrew also begins with x, then multiplies it by 5, adds 18 and writes down the result. Given that Jane and Andrew write down the same result, work out the value of x.​